Spaces:
Sleeping
Sleeping
Update static/index.html
Browse files- static/index.html +4 -2
static/index.html
CHANGED
|
@@ -218,8 +218,10 @@
|
|
| 218 |
model = messageData.model;
|
| 219 |
} catch (parseError) {
|
| 220 |
// Si ce n'est pas du JSON, traiter comme ancien format (string simple)
|
| 221 |
-
prompt = event.data;
|
| 222 |
-
model = null;
|
|
|
|
|
|
|
| 223 |
}
|
| 224 |
|
| 225 |
// Si aucun modèle spécifié, utiliser celui sélectionné dans l'UI
|
|
|
|
| 218 |
model = messageData.model;
|
| 219 |
} catch (parseError) {
|
| 220 |
// Si ce n'est pas du JSON, traiter comme ancien format (string simple)
|
| 221 |
+
// prompt = event.data;
|
| 222 |
+
// model = null;
|
| 223 |
+
console.error('Erreur :', error);
|
| 224 |
+
addLog(`Erreur : ${error.message}`);
|
| 225 |
}
|
| 226 |
|
| 227 |
// Si aucun modèle spécifié, utiliser celui sélectionné dans l'UI
|