Merge pull request #23 from iorisa/feature/skills

Feature/skills
This commit is contained in:
send18 2023-09-03 14:26:20 +08:00 committed by GitHub
commit 317e2e2946
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 10 deletions

View file

@ -46,4 +46,4 @@ async def text_to_speech(
return f"[{text}]({url})"
return audio_declaration + base64_data if base64_data else base64_data
raise openai.error.InvalidRequestError("缺少必要的参数")
raise openai.error.InvalidRequestError(message="AZURE_TTS_SUBSCRIPTION_KEY and AZURE_TTS_REGION error", param={})