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 5730bcd commit 2ee5b60Copy full SHA for 2ee5b60
singlestoredb/ai/chat.py
@@ -2,6 +2,7 @@
2
from typing import Any
3
from typing import Callable
4
from typing import Optional
5
+from typing import Union
6
7
import httpx
8
@@ -73,7 +74,7 @@ def SingleStoreChatFactory(
73
74
http_client: Optional[httpx.Client] = None,
75
obo_token_getter: Optional[Callable[[], Optional[str]]] = None,
76
**kwargs: Any,
-) -> ChatOpenAI | ChatBedrockConverse:
77
+) -> Union[ChatOpenAI, ChatBedrockConverse]:
78
"""Return a chat model instance (ChatOpenAI or ChatBedrockConverse) based on prefix.
79
80
The fully-qualified model name is expected to contain a prefix followed by
0 commit comments