mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-22 07:04:59 +01:00
align with the behavior of other variables
This commit is contained in:
@@ -341,7 +341,7 @@ class OpenAIHelper:
|
||||
"""
|
||||
try:
|
||||
with open(filename, "rb") as audio:
|
||||
prompt_text = os.environ.get('WHISPER_PROMPT', '')
|
||||
prompt_text = self.config['whisper_prompt']
|
||||
result = await openai.Audio.atranscribe("whisper-1", audio, prompt=prompt_text)
|
||||
return result.text
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user