Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): make id optional in ResponseFunctionToolCallParam #2249

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Programmer-RD-AI
Copy link

@Programmer-RD-AI Programmer-RD-AI 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.

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.

1 participant