Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Audio: Error "Resource not found" as api_version is ignored #509

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

Closed
olnraocode opened this issue Jun 29, 2023 · 0 comments · Fixed by #514
Closed

Audio: Error "Resource not found" as api_version is ignored #509

olnraocode opened this issue Jun 29, 2023 · 0 comments · Fixed by #514
Labels
bug Something isn't working

Comments

@olnraocode
Copy link

olnraocode commented Jun 29, 2023

Describe the bug

OpenAI Audio API take api_key, api_base, api_type, api_version, organization as aparameters. Most of these parameters were ignored until the PR #369. However, this PR is incomplete as it ignored api_version, organization. As a result, we still get "Resource not found" error.

Fix is to ensure api_version, organization parameter are not ignored.

To Reproduce

  • Was using both OpenAI APIs and Auzre OpenAI APIs with in same module
  • Was using Chat completions from Azure OpenAI and Audio Whisper transcribe from OpenAI
  • The parameter overrides is supposed to allow such parallel usage of it, but ignorance of api_version, organization hinders it

Code snippets

No response

OS

Ubuntu 22.04.2 LTS (of Windows 11 WSL)

Python version

Python v3.9.14

Library version

openai-python v0.27.6

@olnraocode olnraocode added the bug Something isn't working label Jun 29, 2023
safa0 pushed a commit to safa0/openai-agents-python that referenced this issue Apr 27, 2025
Minor change - naming. So that it doesn't pollute the next PR.

---
[//]: # (BEGIN SAPLING FOOTER)
* openai#509
* __->__ openai#508
safa0 pushed a commit to safa0/openai-agents-python that referenced this issue Apr 27, 2025
Allows passing in the previous_response_id to reduce sending the same
data again and again.

Test plan:
Examples. Adding tests in next PR shortly.

---
[//]: # (BEGIN SAPLING FOOTER)
* __->__ openai#509
* openai#508
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

Successfully merging a pull request may close this issue.

1 participant