Skip to content

Commit

Permalink
Update exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
SevaSk committed May 22, 2023
1 parent ff0d7c4 commit e1ca16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GPTResponder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e1ca16d

Please sign in to comment.