Skip to content

GPT5 not working with ResponseStreaming #378

@cescofry

Description

@cescofry

Describe the bug
When setting .gtp5 in the query for response streaming I get a 400.

Version 0.4.6

Setup

let query = CreateModelResponseQuery(
            input: .textInput("Tell me a joke"),
            model: .gpt5,
            stream: true
        )
        
        let stream = client.responses.createResponseStreaming(query: query)

Error Headers

{
    "Alt-Svc" =     (
        "h3=\":443\"; ma=86400"
    );
    "CF-RAY" =     (
        "xxxxxxxxxxx-SJC"
    );
    Connection =     (
        "keep-alive"
    );
    "Content-Length" =     (
        191
    );
    "Content-Type" =     (
        "application/json"
    );
    Date =     (
        "Wed, 13 Aug 2025 22:27:17 GMT"
    );
    Server =     (
        cloudflare
    );
    "Set-Cookie" =     (
        "_cfuvid=xxxxxxxxx_xxxxxxxx-1755124037886-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None"
    );
    "Strict-Transport-Security" =     (
        "max-age=31536000; includeSubDomains; preload"
    );
    "X-Content-Type-Options" =     (
        nosniff
    );
    "cf-cache-status" =     (
        DYNAMIC
    );
    "openai-organization" =     (
        "user-xxxxxxxxx"
    );
    "openai-processing-ms" =     (
        25
    );
    "openai-project" =     (
        "proj_xxxxxxxxx"
    );
    "openai-version" =     (
        "2020-10-01"
    );
    "x-envoy-upstream-service-time" =     (
        29
    );
    "x-request-id" =     (
        "req_xxxxxxxxx"
    );
}

Smartphone:

  • Device: iPhone 13 mini, and iOS Simulator
  • OS: iOS18.6.1
  • Version 0.4.6

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