chat_llm
ChatOutput
Bases: BaseModel
Chat output
Attributes:
| Name | Type | Description |
|---|---|---|
content | str | Content of the message |
Source code in api/routes/chat_llm.py
chat(chat_input, chat_model=Depends(get_chat_model))
Chat with the chat model
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
chat_input | ChatInput | Chat input | required |
chat_model | BaseChatModel | Chat model | Depends(get_chat_model) |
Returns:
| Name | Type | Description |
|---|---|---|
ChatOutput | Annotated[ChatOutput, 'Chat Output'] | Chat output |