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 ca5499f commit 76d2fadCopy full SHA for 76d2fad
ai21/models/chat/__init__.py
@@ -0,0 +1,3 @@
1
+from __future__ import annotations
2
+
3
+from .chat_message import ChatMessage as ChatMessage
ai21/models/chat/chat_message.py
@@ -3,6 +3,8 @@
from ai21.models import RoleType
4
from ai21.models.ai21_base_model_mixin import AI21BaseModelMixin
5
6
+__all__ = ["ChatMessage"]
7
8
9
@dataclass
10
class ChatMessage(AI21BaseModelMixin):
tests/integration_tests/clients/studio/test_chat_completions.py
@@ -1,7 +1,8 @@
import pytest
from ai21 import AI21Client
-from ai21.models import ChatMessage, RoleType
+from ai21.models.chat import ChatMessage
+from ai21.models import RoleType
from ai21.models.responses.chat_completion_response import ChatCompletionResponse
0 commit comments