Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
billytrend-cohere committed Sep 19, 2024
1 parent 4cc09ff commit f41396c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_client_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
class TestClientV2(unittest.TestCase):

def test_chat(self) -> None:
response = co.chat(model="command-r-plus", messages=[cohere.UserMessage(message="hello world!")])
response = co.chat(model="command-r-plus", messages=[cohere.UserChatMessageV2(content="hello world!")])

print(response.message)

def test_chat_stream(self) -> None:
stream = co.chat_stream(model="command-r-plus", messages=[cohere.UserMessage(message="hello world!")])
stream = co.chat_stream(model="command-r-plus", messages=[cohere.UserChatMessageV2(content="hello world!")])

events = set()

Expand Down

0 comments on commit f41396c

Please sign in to comment.