You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usage info is supposed to show in the last chunk of streaming. But it didn't show.
client=MistralClient(api_key=api_key)
messages= [
ChatMessage(role="user", content="What is the best French cheese?")
]
# With streamingstream_response=client.chat_stream(model=model, messages=messages)
forchunkinstream_response:
print(chunk.usage)
The text was updated successfully, but these errors were encountered:
usage info is supposed to show in the last chunk of streaming. But it didn't show.
The text was updated successfully, but these errors were encountered: