mirror of
https://github.com/SevaSk/ecoute.git
synced 2024-12-18 20:27:56 +00:00
Update exception message
This commit is contained in:
parent
ff0d7c4767
commit
e1ca16df6a
@ -12,8 +12,8 @@ def generate_response_from_transcript(transcript):
|
||||
messages=[{"role": "system", "content": create_prompt(transcript)}],
|
||||
temperature = 0.0
|
||||
)
|
||||
except openai.OpenAIError:
|
||||
print("An error occurred while calling OpenAI ChatCompletion.")
|
||||
except Exception as e:
|
||||
print(e)
|
||||
return ''
|
||||
full_response = response.choices[0].message.content
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user