Commit ·
a4d8b4b
1
Parent(s): 8d2a9f8
Fixing bugs
Browse files- Messaging_system/LLM.py +3 -0
Messaging_system/LLM.py
CHANGED
|
@@ -190,6 +190,9 @@ class LLM:
|
|
| 190 |
except Exception as e:
|
| 191 |
print(f"Error in attempt {attempt}: {e}")
|
| 192 |
|
|
|
|
|
|
|
|
|
|
| 193 |
# =========================================================================
|
| 194 |
|
| 195 |
def get_message_openai(self, prompt, instructions, max_retries=4):
|
|
|
|
| 190 |
except Exception as e:
|
| 191 |
print(f"Error in attempt {attempt}: {e}")
|
| 192 |
|
| 193 |
+
print("Max retries exceeded. Returning empty response.")
|
| 194 |
+
return None
|
| 195 |
+
|
| 196 |
# =========================================================================
|
| 197 |
|
| 198 |
def get_message_openai(self, prompt, instructions, max_retries=4):
|