Spaces:
Sleeping
Sleeping
Commit
·
b5685e6
1
Parent(s):
a06b399
graceful error exit
Browse files
main.py
CHANGED
@@ -66,10 +66,9 @@ async def on_message(message):
|
|
66 |
|
67 |
question = message.content.replace("<@1243428204124045385>", "")
|
68 |
engine_response = await llm_output(question)
|
69 |
-
if llm_output != "Error 500":
|
70 |
-
llm_answer, references = engine_response
|
71 |
|
72 |
try:
|
|
|
73 |
start = 0
|
74 |
while llm_answer[start: start+1990] != "":
|
75 |
if (start == 0):
|
|
|
66 |
|
67 |
question = message.content.replace("<@1243428204124045385>", "")
|
68 |
engine_response = await llm_output(question)
|
|
|
|
|
69 |
|
70 |
try:
|
71 |
+
llm_answer, references = engine_response
|
72 |
start = 0
|
73 |
while llm_answer[start: start+1990] != "":
|
74 |
if (start == 0):
|