Skip to content

feat(core): support Responses API with configuration and documentation - #3161

Merged
EAGzzyCSL merged 12 commits into
mainfrom
zzy/response-api
Sep 29, 2026
Merged

EAGzzyCSL merged 12 commits into
mainfrom
zzy/response-api

Conversation

@EAGzzyCSL

Copy link
Copy Markdown
Collaborator

Summary

Add an opt-in OpenAI Responses protocol through MIDSCENE_MODEL_API_TYPE="responses", including separate Planning and Insight configuration. Chat Completions remains the default.

  • Add streaming and non-streaming Responses calls, message conversion, and usage normalization through the shared model-call lifecycle.
  • Add adapter protocol support declarations and GPT Responses parameter handling; separate image-detail and semantic-retry temperature policies.
  • Serialize assistant text history correctly for Responses requests.
  • Add bilingual protocol guidance and a Chat / Responses selector within GPT configuration examples. Update connectivity checks and Azure image-detail troubleshooting.

Validation

  • pnpm run lint — passed.
  • pnpm --filter doc exec rspress build — passed during documentation development.
  • Browser checks for protocol switching, model-role examples, and help links — passed.
  • Mocked execution of both bilingual curl examples for Chat and Responses — endpoint and JSON body verified.
  • pnpm exec nx build doc — blocked by the local environment's missing GITHUB_TOKEN; the non-strict Rspress build above passed.

Full runtime tests were not rerun at PR creation.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: dac2768
Status: ✅  Deploy successful!
Preview URL: https://e12c8859.midscene.pages.dev
Branch Preview URL: https://zzy-response-api.midscene.pages.dev

View logs

@EAGzzyCSL
EAGzzyCSL force-pushed the zzy/response-api branch 3 times, most recently from 37d6df8 to 58a8c9c Compare September 22, 2026 12:11
@EAGzzyCSL
EAGzzyCSL merged commit 7ea827b into main Sep 29, 2026
25 of 29 checks passed
@EAGzzyCSL
EAGzzyCSL deleted the zzy/response-api branch September 29, 2026 11:02
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.

2 participants