Skip to content

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

Open
@lemueljay

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!

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