openai-python
openai-python copied to clipboard
fix(types): make id optional in ResponseFunctionToolCallParam
This pull request addresses Issue #2205 by updating the ResponseFunctionToolCallParam type. Previously, the id field was defined as a required string, but this change makes it optional, aligning the type definition with the actual usage scenarios.
Changes Introduced:
- Updated
src/openai/types/responses/response_function_tool_call_param.pyto change theidfield fromstrtoOptional[str].
Rationale:
The GitHub issue details confirm that making id optional aligns with the API spec. Users have successfully tested the functionality without supplying an id, which further validates this change. This update improves the type accuracy and usability of the library.