Skip to content

feat(api): Ultrafast tier, structured MCP and websocket errors, separate websocket events - #62

Merged
apcha-oai merged 1 commit into
mainfrom
castiron/promotions/pr-23-9df1f1be0fff
Aug 14, 2026
Merged

feat(api): Ultrafast tier, structured MCP and websocket errors, separate websocket events#62
apcha-oai merged 1 commit into
mainfrom
castiron/promotions/pr-23-9df1f1be0fff

Conversation

@apcha-oai

@apcha-oai apcha-oai commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Document the access-controlled ultrafast Responses service tier in stable and beta command help so callers understand the request and response values.
  • Update the bundled API specification with accurate structured MCP tool-call errors, corrected Responses WebSocket events, and optional model shutdown dates.
  • Clarify that file-content commands return a response containing the file data; command behavior remains unchanged.

Copilot AI lite review requested due to automatic review settings August 14, 2026 16:11
@apcha-oai
apcha-oai marked this pull request as ready for review August 14, 2026 16:12
@apcha-oai
apcha-oai requested a review from a team as a code owner August 14, 2026 16:12

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the exact current head. Stable and beta ultrafast service-tier help is aligned and accurate, file-content wording now matches the existing response behavior, generated provenance is coherent, and all CI is green. No runtime, compatibility, structure, or file-size issue found.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CLI help text and the generated OpenAPI reference to reflect new/clarified API behaviors and schema details (notably the ultrafast service tier guidance and richer streaming/WebSocket/MCP error modeling).

Changes:

  • Document the access-controlled ultrafast service tier in both stable and beta Responses command help output.
  • Clarify that file-content retrieval returns an HTTP response object containing the file bytes/content (CLI + OpenAPI example/description).
  • Expand the transformed OpenAPI spec with additional response codes (e.g., many 429s) and new/adjusted schemas for streaming/WebSocket/MCP errors and event unions.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/cmd/response.go Adds ultrafast tier documentation to stable Responses CLI flag help.
pkg/cmd/betaresponse.go Adds ultrafast tier documentation to beta Responses CLI flag help.
pkg/cmd/file.go Clarifies files content returns a response containing file data.
api_reference/openapi.transformed.yml Updates generated OpenAPI: adds many 429 responses, adjusts file-content docs/example, and introduces/changes schemas for MCP/WebSocket/streaming errors & events.
.castiron.stats.yml Updates generated spec/codegen metadata hashes/IDs.
Suppressed comments (1)

api_reference/openapi.transformed.yml:77836

  • BetaResponsesWebSocketStreamEvent similarly omits BetaResponseWsError from its anyOf, so beta WebSocket stream event typing cannot represent type: error events.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 55752 to +55755
ResponsesWebSocketStreamEvent:
allOf:
- $ref: '#/components/schemas/ResponseStreamEvent'
- anyOf:
- $ref: '#/components/schemas/ResponseAudioDeltaEvent'
Comment on lines +96 to +97
'429':
$ref: '#/components/responses/TooManyRequests'
…ate websocket events

Castiron-Internal-PR: openai/openai-cli-internal#23
Castiron-Source-SHA: 470147ba303ae858096e09fcf01b1bad9abd72ac
Castiron-Public-Base-SHA: 033612a
Copilot AI review requested due to automatic review settings August 14, 2026 19:46
@apcha-oai
apcha-oai force-pushed the castiron/promotions/pr-23-9df1f1be0fff branch from f08b144 to cdceb51 Compare August 14, 2026 19:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Suppressed comments (1)

api_reference/openapi.transformed.yml:55021

  • The PR description summary only mentions CLI help/documentation changes, but this diff also includes large OpenAPI spec updates (e.g., new 429 responses, structured MCP/WebSocket error schemas, model fields). Please update the PR description to reflect the full scope so reviewers and release notes consumers aren’t surprised.

@apcha-oai
apcha-oai added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit 068a640 Aug 14, 2026
9 checks passed
@apcha-oai
apcha-oai deleted the castiron/promotions/pr-23-9df1f1be0fff branch August 14, 2026 20:30
@openai-sdks openai-sdks Bot mentioned this pull request Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants