We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d8ab8 commit 8773714Copy full SHA for 8773714
tests/pytest/test_chat.py
@@ -476,7 +476,12 @@ def test_as_ollama_message():
476
import ollama
477
from ollama import Message as OllamaMessage
478
479
- assert "ollama._types.Message" in str(ollama.chat.__annotations__["messages"])
+ # ollama 0.4.2 added Callable to the type hints, but pyright complains about
480
+ # missing arguments to the Callable type. We'll ignore this for now.
481
+ # https://github.com/ollama/ollama-python/commit/b50a65b
482
+ chat = ollama.chat # type: ignore
483
+
484
+ assert "ollama._types.Message" in str(chat.__annotations__["messages"])
485
486
from shiny.ui._chat_provider_types import as_ollama_message
487
0 commit comments