Update environment variables, Docker configuration, and dependencies; refactor token management and chat agent logic. Added FastAPI server setup and improved message handling in GigaChat client.

This commit is contained in:
12 changed files with 348 additions and 50 deletions

View File

@@ -41,9 +41,9 @@ class GigaChatUsage(BaseModel):
class GigaChatResponse(BaseModel):
"""Ответ от GigaChat API."""
id: str
object: str
created: int
id: Optional[str] = None
object: Optional[str] = None
created: Optional[int] = None
model: str
choices: List[GigaChatChoice]
usage: GigaChatUsage