We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I have an instance of the MessageStreamManager which I return from a function, and use in another function to stream my output.
But how do I do that?
Here is what I am returning from a function:
completion = client.messages.stream( max_tokens=1024, system=system_message, messages=[{"role": "user", "content": user_message}], model="claude-3-haiku-20240307" ) return completion
How do I then stream the chunks from this completion object, which is a MessageStreamManager?
MessageStreamManager
Doing dir(MessageStreamManager) does not return any method which can be used to stream from this object.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I have an instance of the MessageStreamManager which I return from a function, and use in another function to stream my output.
But how do I do that?
Here is what I am returning from a function:
How do I then stream the chunks from this completion object, which is a
MessageStreamManager
?Doing dir(MessageStreamManager) does not return any method which can be used to stream from this object.
The text was updated successfully, but these errors were encountered: