This commit is contained in:
Kovid Goyal 2025-09-12 07:14:38 +05:30
parent f0fcb84234
commit 5d7e967f83
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -124,6 +124,7 @@ def as_chat_responses(d: dict[str, Any], model: Model) -> Iterator[ChatResponse]
def text_chat_implementation(messages: Iterable[ChatMessage], use_model: str = '') -> Iterator[ChatResponse]:
# https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-chat-completion
# Doesnt use SSE
if use_model:
model = get_available_models()[use_model]
else: