Skip to content

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

Description

@lemueljay

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions