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 params.initial_prompt to set an initial prompt string #637

Closed
sindresorhus opened this issue Mar 21, 2023 · 2 comments
Closed

Add params.initial_prompt to set an initial prompt string #637

sindresorhus opened this issue Mar 21, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sindresorhus
Copy link
Contributor

It would be useful if the API had an initial_prompt parameter to set a string as the initial prompt. The OpenAI docs recommend always setting it to fix punctation, so it's quite a common need: https://platform.openai.com/docs/guides/speech-to-text/prompting

I'm aware I could already do something like this, but I don't think it makes sense for everyone to re-implement that logic.

@jhen0409
Copy link
Sponsor Contributor

Agree, that option will be very useful!

I did the same in mybigday/whisper.rn#8, I think it can be built directly into the whisper.cpp. Maybe I will try to send a PR later.

@ggerganov ggerganov added enhancement New feature or request good first issue Good for newcomers labels Mar 22, 2023
@User1231300
Copy link

I also would appreciate this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants