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

ResponseFunctionToolCallParam.id should be optional #2205

Closed
1 task done
Shulyaka opened this issue Mar 14, 2025 · 2 comments
Closed
1 task done

ResponseFunctionToolCallParam.id should be optional #2205

Shulyaka opened this issue Mar 14, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Shulyaka
Copy link

Shulyaka commented Mar 14, 2025

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

The ResponseFunctionToolCallParam.id is annotated as Required[str], while according to the specs it should be optional:
Image
I have tested it without the id and it works fine. Also we already have one id of the function call tool, which is call_id.

To Reproduce

N/A

Code snippets

OS

Linux

Python version

3.13.2

Library version

1.66.3

@Programmer-RD-AI
Copy link

Hi, thanks for reporting this issue. I've opened PR #2249 to address it by making the id field in ResponseFunctionToolCallParam optional, as per the API specifications. This change should resolve the errors mentioned in this issue. Let me know if you have any feedback or further questions.

@Shulyaka
Copy link
Author

Fixed in 1.66.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants