[Feature]: upgrade openai dependency to 1.0
Brief Description
Update the openai dependency to the newest version >=1.0 and adapt Vocode to work with its changed API surface
Rationale
Upgrading to 1.0 would allow easier integration with other python libraries that are already on openai 1.0, such as http://askmarvin.ai, as well as allowing the use of new features in the library that are only added to 1.0 and later versions
Suggested Implementation
No response
https://github.com/openai/openai-python/discussions/742
The migration is not trivial for this test
https://github.com/vocodedev/vocode-python/blob/3f97e3982c473874204ee75563baa8ce4cd22b52/tests/streaming/agent/test_utils.py#L2C34-L2C46
- https://github.com/openai/openai-python/issues/715
- https://github.com/openai/openai-python/issues/398
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This was updated in version 0.1.113.