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

建议增加OpenAI API的兼容性接口 #158

Open
epochaudio opened this issue Apr 17, 2024 · 0 comments
Open

建议增加OpenAI API的兼容性接口 #158

epochaudio opened this issue Apr 17, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@epochaudio
Copy link

如果具备与OpenAI API的兼容性,其他应用的接入将变得极其便捷。
OpenAI API的范例:
curl https://api.openai.com/v1/audio/speech
-H "Authorization: Bearer $OPENAI_API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "tts-1",
"input": "The quick brown fox jumped over the lazy dog.",
"voice": "alloy"
}'
--output speech.mp3

参考文档:https://platform.openai.com/docs/api-reference/authentication

@Artrajz Artrajz added the enhancement New feature or request label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants