Key changes
In this version, openai package v1.x versions are no longer supported. Please use openai v2.x along with this SDK.
What's Changed
- fix: making input_file's filename optional in code for supporting non-OpenAI models by @ant31 in #1839
- feat: #1829 add httpx_client_factory to MCPServerStreamableHttp initialization options by @jjcampana in #1833
- fix: #1789 Fix multi-turn handling for conversation_id and previous_response_id: only send new items by @ihower in #1827
- Update all translated document pages by @github-actions[bot] in #1842
- docs: improve formatting consistency in tools documentation by @AbdulSamad94 in #1856
- Update all translated document pages by @github-actions[bot] in #1858
- docs: add documentation for extension feature EncryptedSession by @maxmekiska in #1872
- Update all translated document pages by @github-actions[bot] in #1873
- Fix: Correct streaming order for ReasoningItem and RawResponsesStreamEvent events by @ihower in #1869
- fix: adjust realtime handoff import by @mcbortolozzo in #1861
- Migrate openai from 1.x to 2.2.0 by @seratch in #1874
- fix: #1840 roll back session changes when Guardrail tripwire is triggered by @seratch in #1843
- docs: Add Chinese translation for documents by @SepineTam in #1878
- docs: add ToolContext section for advanced tool metadata by @MuhammadSaqib786 in #1868
- Fix: Exclude unset fields in OpenAIConversationsSession.get_items() by @ihower in #1883
- Update all translated document pages by @github-actions[bot] in #1891
- Feat: Expose MCP message handler configuration by @freeznet in #1795
- fix: handle omit type in
_remove_not_given()
for litellm model by @HareeshBahuleyan in #1893 - fix: convert oneOf to anyOf in strict schema for OpenAI compatibility by @ruskaruma in #1884
- Fix Local shell tool: return tool output to the LLM by @ihower in #1855
- Image, file output types for functions by @rm-openai in #1898
- Update all translated document pages by @github-actions[bot] in #1910
- Add graceful cancel mode for streaming runs by @habema in #1896
- Document
AdvancedSQLiteSession
and refactor session docs by @habema in #1791 - Update all translated document pages by @github-actions[bot] in #1913
- Fixes realtime example app stability issues by @thli-openai in #1905
- fix: #1900 fix a bug where SQLAlchemySession could return items in an invalid order by @seratch in #1917
- fix: #1916 openai_chatcompletions.Converter.extract_all_content does not support input_audio type items by @seratch in #1918
- v0.4.0 by @seratch in #1919
New Contributors
- @jjcampana made their first contribution in #1833
- @mcbortolozzo made their first contribution in #1861
- @SepineTam made their first contribution in #1878
- @MuhammadSaqib786 made their first contribution in #1868
- @freeznet made their first contribution in #1795
- @HareeshBahuleyan made their first contribution in #1893
- @ruskaruma made their first contribution in #1884
- @thli-openai made their first contribution in #1905
Full Changelog: v0.3.3...v0.4.0