Skip to content
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

AttributeError: 'Stream' object has no attribute 'choices' #2

Open
lemueljay opened this issue Feb 23, 2024 · 1 comment
Open

AttributeError: 'Stream' object has no attribute 'choices' #2

lemueljay opened this issue Feb 23, 2024 · 1 comment

Comments

@lemueljay
Copy link

lemueljay commented Feb 23, 2024

Applied the patch on my openai project that implements streaming. It seems that the patch doesn't work on streaming=True because on openai_multi_tool_use_parallel_patch.py:55, response is a list of chunk objects, thus raising the error 'Stream' object has no attribute 'choices' as the stream object is a list of chunk response.

image

Can you confirm? Thanks!

@leehanchung
Copy link

We run into the same issue. This patch does not support streaming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants