-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
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
assistants api import error #94
Comments
i am getting same error, let me know if you figure this out |
@anthonyrs06 @Mitthat, it looks like an |
that did the trick! I think the recipe needs to be updated for the latest lib versions if anyone from chainlit see's this |
openai/openai-python@5429f69
See the reference docs for more information:
|
Thanks for catching! super helpful |
I assume the best approach to stream assistant steps into Chainlit objects is directly via the EventHandler. This works inside app.py but I'd love to import this to clean it up. How can we pass the context though? For streaming input, like code interpreter, there's no stream_token for input, only output. step.input += token then update() is inefficient. One design struggle that I'm curious how anyone has solved, is submitting tool outputs for custom functions. This starts a new stream. |
@hayescode I'm struggling with the same issue with custom functions...any luck on your side? |
I keep getting this error when trying to run the assistants api example. I have pip install openai done. Any tips?
ImportError: cannot import name 'MessageContentImageFile' from 'openai.types.beta.threads'
The text was updated successfully, but these errors were encountered: