| 10 | # OpenAI Compatible Models |
| 11 | |
| 12 | class ChatMessage(BaseModel): |
| 13 | role: Literal["system", "user", "assistant"] = Field(..., description="The role of the message author") |
| 14 | content: str = Field(..., description="The content of the message") |
| 15 | name: Optional[str] = Field(None, description="The name of the author of this message") |
| 16 | |
| 17 | class ChatCompletionRequest(BaseModel): |
| 18 | model: str = Field(..., description="ID of the model to use") |
no test coverage detected