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

Support OpenAI Whisper API #668

Closed
ftnext opened this issue Mar 2, 2023 · 1 comment · Fixed by #669
Closed

Support OpenAI Whisper API #668

ftnext opened this issue Mar 2, 2023 · 1 comment · Fixed by #669
Assignees
Labels
whisper Features related to Whisper

Comments

@ftnext
Copy link
Collaborator

ftnext commented Mar 2, 2023

@ftnext ftnext added the whisper Features related to Whisper label Mar 2, 2023
@ftnext ftnext self-assigned this Mar 2, 2023
@ventz
Copy link

ventz commented Oct 3, 2023

@ftnext Would it be possible to add the 4-5 lines needed to make this Azure compatible too?

openai.api_version = OPENAI_API_VERSION
openai.api_type = OPENAI_API_TYPE
openai.api_key = OPENAI_API_KEY
openai.api_base = OPENAI_API_BASE
deployment_name = OPENAI_DEPLOYMENT_NAME

see: https://learn.microsoft.com/en-us/azure/ai-services/openai/whisper-quickstart?tabs=command-line#rest-api

it really just requires a custom openai.api_base, the key (openai.api_key -- already available) as is, a openai.api_type, openaiapi_version, and deployment_name (could be named anything).

You could keep everything the same, and just provide them as override parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
whisper Features related to Whisper
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants