mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-02 15:21:57 -04:00
...
This commit is contained in:
parent
f0fcb84234
commit
5d7e967f83
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user