Skip to content

openai-functions-streaming GPT5 new API  #200

Description

@ryanshrott

Can we upgrade the cookbook to using the latest open ai API? GPT-5 does not support the old API: client.chat.completions

We need to use something like this, with streaming:
await client.responses.create(
model="gpt-5-mini",
input=[{"role":"user","content":"Keep it brief. What’s SmartBids?"}],
reasoning={"effort": "minimal"}, # or: low | medium | high
verbosity="low" # Responses API only
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions