Add multimodal support

This commit is contained in:
Aiden Dai
2024-04-02 13:10:15 +08:00
parent 31ae10a275
commit e49a579a41
3 changed files with 91 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ router = APIRouter(
)
@router.post("/completions", response_model=ChatResponse | ChatStreamResponse)
@router.post("/completions", response_model=ChatResponse | ChatStreamResponse, response_model_exclude_none=True)
async def chat_completions(
chat_request: Annotated[
ChatRequest,