Skip to content

FEAT Allow context free grammars in OpenAI Responses - #1151

Merged
Roman Lutz (romanlutz) merged 20 commits into
microsoft:mainfrom
riedgar-ms:riedgar-ms/responses-cfg-01
Oct 28, 2025
Merged

Roman Lutz (romanlutz) merged 20 commits into
microsoft:mainfrom
riedgar-ms:riedgar-ms/responses-cfg-01

Conversation

@riedgar-ms

@riedgar-ms Richard Edgar (riedgar-ms) commented Oct 27, 2025 •

Copy link
Copy Markdown
Contributor

Description

Adds in support for context free grammars when using the OpenAI Responses API. The grammar is supplied as a custom tool call, which has to be extracted when the response is generated.

Addresses #1147 .

Tests and Documentation

Have added a test and updated the 'responses' notebook - however, I don't have access to any endpoints with key-based auth, so I can't test these. Or get the notebook itself regenerated from the corresponding .py file.

@riedgar-ms

Copy link
Copy Markdown
Contributor Author

For the pre-commit checks, it would be helpful to know which lines have the trailing whitespace; black doesn't see any issues. I'm confused by the broken link complaint. The link listed is not the one I added, but it does work.

@romanlutz
Roman Lutz (romanlutz) merged commit 6d20c0d into microsoft:main Oct 28, 2025
@riedgar-ms
Richard Edgar (riedgar-ms) deleted the riedgar-ms/responses-cfg-01 branch October 28, 2025 11:43
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