Skip to content

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

@olnraocode

Description

@olnraocode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions