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

add optional params for audio api, e.g. prompt #183

Merged
merged 15 commits into from
Mar 20, 2023
Merged

add optional params for audio api, e.g. prompt #183

merged 15 commits into from
Mar 20, 2023

Conversation

itegel
Copy link
Contributor

@itegel itegel commented Mar 20, 2023

I found the prompt argument is useful in audio api, so added following optional args from official doc
https://platform.openai.com/docs/api-reference/audio/create :
Prompt string // For translation, it should be in English
Temperature float32
Language string // For translation, just do not use it. It seems "en" works, not confirmed...

btw. I found there already exist a similar pull request from someone else. I added this change in my local env last week, today I've done some test works(for real env), so It's just a coincidence....

It is ok, that just close this pr, I just want the changes merged ASAP~

@codecov
Copy link

codecov bot commented Mar 20, 2023

Codecov Report

Merging #183 (3fd7c0b) into master (d529d13) will decrease coverage by 1.80%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
- Coverage   70.65%   68.86%   -1.80%     
==========================================
  Files          18       18              
  Lines         535      562      +27     
==========================================
+ Hits          378      387       +9     
- Misses        121      133      +12     
- Partials       36       42       +6     
Impacted Files Coverage Δ
audio.go 45.83% <33.33%> (-7.50%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sashabaranov
Copy link
Owner

thank you for the PR! 🙌🏻

@sashabaranov sashabaranov merged commit aa149c1 into sashabaranov:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants