-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Bump openai to 1.99.3 #150232
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
Bump openai to 1.99.3 #150232
Conversation
Hey there @balloob, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @joostlek, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the OpenAI Python library from version 1.93.3 to 1.99.3 across Home Assistant's OpenAI and Open Router integrations. The update includes necessary code changes to accommodate breaking changes in the OpenAI library's type system and API.
Key changes:
- Updated OpenAI library version in manifest files and requirements
- Migrated from generic tool call types to function-specific tool call types
- Added required parameters to test mocks to match new API expectations
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
homeassistant/components/openai_conversation/manifest.json | Updated OpenAI dependency version |
homeassistant/components/open_router/manifest.json | Updated OpenAI dependency version |
homeassistant/components/open_router/entity.py | Migrated to function-specific tool call types and added type filtering |
requirements_all.txt | Updated OpenAI version in main requirements |
requirements_test_all.txt | Updated OpenAI version in test requirements |
tests/components/openai_conversation/test_init.py | Added AsyncMock callable for image generation tests |
tests/components/openai_conversation/test_conversation.py | Added content field to test assertion |
tests/components/openai_conversation/init.py | Added logprobs parameter to test helpers |
tests/components/open_router/test_conversation.py | Migrated to function-specific tool call types |
This is a pre-requisite for GPT-5 support (I will raise it as a separate PR) |
Proposed change
Bump openai to 1.99.3
Changelog: openai/openai-python@v1.93.3...v1.99.3
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: