GPT5 not working with ResponseStreaming

オープン
#378 コメント 3 件 リアクション 6 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
swift
領域
api

調査の方向性

Start by reading CreateModelResponseQuery and the client.responses.createResponseStreaming(query:) entry point; the issue does not identify source files or tests. Reproduce the reported 400 with model .gpt5 and stream: true, then inspect the error response. Done means the query streams successfully without the 400.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Swift
スター
2.9k
フォーク
519
平均マージ
2日 14時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MacPaw/OpenAI のほかの issue

MacPaw/OpenAI の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。