-
Notifications
You must be signed in to change notification settings - Fork 566
feat(responses): deliver structured output to routed openai-chat models #985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1664,6 +1664,9 @@ async function handleResponsesInner( | |
| delete parsed._webSearch; | ||
| delete parsed.options.toolChoice; | ||
| delete parsed.options.parallelToolCalls; | ||
| // The compaction turn is a plain prose summary; a surviving structured-output format | ||
| // would force schema-constrained JSON into the synthetic compaction item. | ||
| delete parsed.options.textFormat; | ||
|
Comment on lines
+1667
to
+1669
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Clear Line 1669 removes Delete Proposed fix delete parsed.options.parallelToolCalls;
delete parsed.options.textFormat;
+ delete parsed._structuredOutput;
parsed.context.messages.push({ role: "user", content: COMPACT_PROMPT, timestamp: Date.now() });🤖 Prompt for AI AgentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When routed compaction is sent to a noncanonical Useful? React with 👍 / 👎. |
||
| parsed.context.messages.push({ role: "user", content: COMPACT_PROMPT, timestamp: Date.now() }); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this change exposes
response_formatsupport to OpenAI-compatible clients, updating onlydocs/github-copilot-app.mdleaves the hosteddocs-sitereference/guides without the new behavior; users reading the public docs still have no indication that routedopenai-chatcan accept structured output. Add the correspondingdocs-site/update, including locales if relevant, alongside this docs change.AGENTS.md reference: AGENTS.md:L224-L225
Useful? React with 👍 / 👎.