Skip to content

Streaming example missing stream=True in chat.completions.create() #15

@javierbnsn

Description

@javierbnsn

Description

While following the streaming example, the API call does not enable streaming, which causes the event iteration code to fail.

Location

File: chat_history_stream.py

Problem

The example code currently contains:

response = client.chat.completions.create(
    model=MODEL_NAME,
    messages=messages,
    temperature=0.7,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions