Repository navigation
docs: add Responses API example and README section - #180
Conversation
Co-authored-by: Eden Reich <[email protected]>
|
@claude can you resolve the merge conflict? |
|
Claude finished @edenreich's task in 50s —— View job Merge conflict resolved
The only conflict was in Merge commit I didn't run lint or tests again because this merge only changes Markdown. |
Resolve README.md conflict by keeping both the Responses API and Audio sections. Co-authored-by: Eden Reich <[email protected]>
## [0.26.0](v0.25.0...v0.26.0) (2026-11-17) ### ✨ Features * sync schemas v1.14.1 and accept standard OpenAI stream chunks ([#182](#182)) ([d4e2634](d4e2634)), closes [#181](#181) ### 🐛 Bug Fixes * allow null stop_reason in Messages stream message_start ([#179](#179)) ([cb9440e](cb9440e)) * read stream chunks as JSON in chat examples ([#178](#178)) ([fca4630](fca4630)), closes [#172](#172) ### 👷 CI * align Dependabot schedule and grouping ([#169](#169)) ([3f5ad19](3f5ad19)) * set up orchestrators from repos.yaml ([#170](#170)) ([bffe983](bffe983)) ### 📚 Documentation * add audio example for speech, sfx and music ([#176](#176)) ([c1f04d0](c1f04d0)) * add Responses API example and README section ([#180](#180)) ([ec0e02a](ec0e02a)) * sync examples and README with gateway config ([#177](#177)) ([ee0999d](ee0999d)) ### 🔧 Miscellaneous * **deps:** bump flox dependencies to latest ([#167](#167)) ([55f32c5](55f32c5)) * **deps:** bump flox dependencies to latest ([#168](#168)) ([de020e9](de020e9))
|
🎉 This PR is included in version 0.26.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
Adds documentation and a runnable example for the OpenAI-compatible Responses API (
create_response/create_response_stream).examples/responses/main.py- three demos:create_response(model=..., input="...", max_output_tokens=...), printing text by walkingresponse.outputforResponseOutputMessageitems and theirResponseOutputTextpartscreate_response_stream(...), printingevent.deltafor typedResponseStreamEventobjects of typeresponse.output_text.deltainputbuilt fromResponseInputItemobjects plus a flattenedResponseTool(name=..., description=..., parameters=FunctionParameters(...)), reading calls back fromResponseFunctionToolCalloutput itemsexamples/responses/README.md- usage, code snippets, the 400 note for providers without Responses API support, and theLLM_NAMEenv var (defaultopenai/gpt-4o)README.md- new "Responses API" section with standard and streaming snippets, and the example listed under "Examples"examples/README.md- example listedCloses #175
Testing
task lint(black, isort, mypy oninference_gateway/andexamples/) passestask testpasses (53 passed, 1 xfailed)Responsewith message andfunction_callitems, and the tool/input items validate againstCreateResponseRequest. The example was not run against a live gateway.No generated code changes and no API changes. No docs ticket: examples and README only, no change to public SDK behavior.
Generated with Claude Code