Close the /v1/responses gaps: tools, streaming, instructions, reasoning effort and images

オープン
#1,013 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
openapi, python, typescript
領域
api, backend

調査の方向性

This is a tracking issue and most of it has already landed (#1014, #1016, #1017); the remaining work sits in #1015 (SDK responses() helpers), #1018 (examples/coding-agent-codex) and #1020 (logprobs and status: "incomplete"). Start by reading how /v1/messages is translated onto /v1/chat/completions (#753, #815) and the frozen vectors under conformance/openai_responses/, then pick one sub-issue. Done means the shared vectors pass for both the gateway and sie-server.

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

説明

enhancement

Summary

POST /v1/responses serves a stateless, non-streaming, text-only subset of the OpenAI Responses API on both the gateway and sie-server. Requests that use stream: true, tools, tool_choice, instructions, reasoning, image parts and several other fields get 400 unsupported_field. Clients that only speak the Responses API, such as Codex CLI with a custom model provider (wire_api = "responses"), cannot use SIE directly.

This issue tracks closing those gaps. /v1/chat/completions keeps working as it does today.

Approach

/v1/responses becomes a translation onto /v1/chat/completions, the same way /v1/messages is served (#753, #815). The request is translated into a chat body, the chat route serves it in process, and the reply, stream and errors are translated back. Every chat validation, limit and timeout applies unchanged. Both the gateway and sie-server use this approach, checked against shared vectors under conformance/openai_responses/.

Planned support

  • instructions, and system, developer, user and assistant input messages.
  • function tools, tool_choice, parallel_tool_calls, and function_call and function_call_output input items.
  • custom tools, translated to a function with one string input parameter. Their grammar is not enforced.
  • stream: true with the typed Responses event sequence, ending in response.completed with usage.
  • reasoning.effort, mapped to chat reasoning_effort.
  • input_image with a base64 data: URI on vision-capable models.
  • text.format for structured output, mapped to response_format.
  • max_output_tokens, temperature, top_p, seed, metadata, prompt_cache_key, user and safety_identifier.
  • store: false, or store omitted.

Stays unsupported

These return 400 naming the field or part:

  • Stored and stateful features: store: true, previous_response_id, conversation, background: true. Send the full conversation in input instead.
  • Hosted tools: web_search, file_search, code_interpreter, computer_use, mcp, local_shell, image_generation.
  • Remote image URLs, file_id references and input_file parts.

reasoning.summary and include: ["reasoning.encrypted_content"] are accepted and have no effect. Model thinking is not returned on this endpoint. The retrieval, delete, cancel and input_items endpoints are not served.

Work items

  • Capture the requests a pinned Codex CLI version sends and freeze the conformance vectors (#1014).
  • Update the API contract and the gateway and server OpenAPI schemas (#1016, #1017).
  • Gateway translation (#1017).
  • sie-server translation (#1016).
  • Python and TypeScript SDK responses() helpers: typed tools, instructions, reasoning and images, plus a streaming variant (#1015).
  • examples/coding-agent-codex with a Responses conformance suite (#1018).
  • logprobs: [] on output_text parts and text events, and status: "incomplete" on the item cut off by a length or content_filter finish (vectors, gateway and sie-server in one PR, after the first gateway and server PRs; #1020).
主要言語
Python
スター
3.5k
フォーク
328
平均マージ
17時間 8分
マージ済み PR(30日)
108

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

superlinked/sie のほかの issue

superlinked/sie の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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