Spaces:
Sleeping
Sleeping
Velayutham S commited on
Commit ·
ea8578e
1
Parent(s): 289e81c
debug: full error message
Browse files
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def generate_response(user_message, mode):
|
|
| 40 |
)
|
| 41 |
return response.choices[0].message.content.strip(), model_id.split("/")[-1]
|
| 42 |
except Exception as e:
|
| 43 |
-
errors.append(f"{model_id.split('/')[-1]}: {str(e)[:
|
| 44 |
continue
|
| 45 |
|
| 46 |
# Show all errors for debug
|
|
|
|
| 40 |
)
|
| 41 |
return response.choices[0].message.content.strip(), model_id.split("/")[-1]
|
| 42 |
except Exception as e:
|
| 43 |
+
errors.append(f"{model_id.split('/')[-1]}: {str(e)[:200]}")
|
| 44 |
continue
|
| 45 |
|
| 46 |
# Show all errors for debug
|