From e1ca16df6a2469c8633682b17d0b9be1fc2e3873 Mon Sep 17 00:00:00 2001 From: SevaSk Date: Mon, 22 May 2023 14:50:44 -0400 Subject: [PATCH] Update exception message --- GPTResponder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPTResponder.py b/GPTResponder.py index 5bf294f..2adab72 100644 --- a/GPTResponder.py +++ b/GPTResponder.py @@ -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: