Changelog for openai-2.2.0
2.2.0:
- Add structured reasoning support to
OpenAI.V1.Responses, including theReasoning,ReasoningEffort, andReasoningSummarytypes, plus theServiceTieralias. - Extend
CreateResponseandResponseObjectwithreasoningandservice_tierfields to round-trip reasoning configuration.
2.1.0:
- Add
Item_Input_Reasoningconstructor and JSON round-trip test so reasoning traces from tool calls can be echoed back via the Responses API.
2.0.0:
-
BREAKING CHANGE: Renamed
Item_InputMessagetoItem_Input_MessageinOpenAI.V1.Responsesfor consistency with new constructorsThe
InputItemdata type in the Responses API has been updated to use a consistent naming scheme. If you are using the Responses API, you will need to update your code:-- Before (v1.2.0): Item_InputMessage { role = ..., content = ..., status = ... } -- After (v2.0.0): Item_Input_Message { role = ..., content = ..., status = ... } -
Add support for function tool calls in Responses API
- New
InputItemconstructors:Item_Input_Function_Call,Item_Input_Function_Call_Output,Item_Input_Item_Reference - Add flattened tool JSON representation for Responses API compatibility
- Export status constants:
statusIncomplete,statusCompleted - Export tool choice constants:
toolChoiceNoneText,toolChoiceAutoText,toolChoiceRequiredText
- New
-
Code quality improvements:
- Optimize
isFunctionFieldusingHashSetfor O(1) lookups - Simplify
unflattenChoicewith guards - Extract magic strings as named constants
- Optimize
1.2.0:
/v1/responses: Add support for Responses API- Add
Tool_Web_Search
1.1.1:
- Remove timeout on default
ClientEnv /v1/chat/completions: Add support for Search- Fix CreateSpeech JSON instances, add new voices and optional instructions field
- Correct
ToJSONofFileSearchResources - New example app for tool-calling and chat-loop
1.1.0:
-
BREAKING CHANGE: Fix details representations for various types [#44] [#45] [#50] [#51]
A few details-related fields were fixed to match the behavior of the OpenAI API.
-
Add support for
reasoning_effortparameter in chat completions
1.0.1:
- Include
README - Include usage example
1.0.0:
- Initial release