from app.service.v2.app_driver.chat_base import ChatBase class ChatDialog(ChatBase): def __init__(self, token): self.token = token async def get_headers(self): return { 'Content-Type': 'application/json', 'Authorization': f'Bearer {self.token}' } async def chat_completions(self): async for rag_response in self.http_stream(token, chat_id, chat_history): yield rag_response