| 161 | |
| 162 | |
| 163 | class ChatCompletionResponse(BaseModel): |
| 164 | model: str |
| 165 | id: str |
| 166 | object: Literal["chat.completion", "chat.completion.chunk"] |
| 167 | choices: List[Union[ChatCompletionResponseChoice, ChatCompletionResponseStreamChoice]] |
| 168 | created: Optional[int] = Field(default_factory=lambda: int(time.time())) |
| 169 | usage: Optional[UsageInfo] = None |
| 170 | |
| 171 | |
| 172 | @app.get("/health") |
no outgoing calls
no test coverage detected