Skip to content

Conversation

@prdai
Copy link

@prdai prdai commented Mar 22, 2025

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.py to change the id field from str to Optional[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.

@prdai prdai requested a review from a team as a code owner March 22, 2025 04:11
@RobertCraigie
Copy link
Collaborator

Thanks for the PR! This has since been fixed.

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