Spaces:
Runtime error
Runtime error
Miguel Diaz commited on
Commit ·
f1a3d5b
1
Parent(s): 744be20
fix: statics tests
Browse files- static/js/chatHandler.js +1 -1
- static/js/windowHandler.js +9 -3
static/js/chatHandler.js
CHANGED
|
@@ -197,7 +197,7 @@ class ChatGPT{
|
|
| 197 |
},
|
| 198 |
});
|
| 199 |
})
|
| 200 |
-
.then(json => console.log('Solicitud finalizada',
|
| 201 |
.catch(err => console.log('Solicitud fallida', err)); // Capturar errores
|
| 202 |
|
| 203 |
|
|
|
|
| 197 |
},
|
| 198 |
});
|
| 199 |
})
|
| 200 |
+
.then(json => console.log('Solicitud finalizada', json)) //imprimir los datos en la consola
|
| 201 |
.catch(err => console.log('Solicitud fallida', err)); // Capturar errores
|
| 202 |
|
| 203 |
|
static/js/windowHandler.js
CHANGED
|
@@ -31,9 +31,15 @@ class WindowHandler{
|
|
| 31 |
$("#input-text").keydown(() => this.recalcularTextarea());
|
| 32 |
this.cargarChat(chatH.convesacion);
|
| 33 |
|
| 34 |
-
$(this.evCtx).on("precarga:inicio", (event, params) =>
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
|
|
|
|
| 31 |
$("#input-text").keydown(() => this.recalcularTextarea());
|
| 32 |
this.cargarChat(chatH.convesacion);
|
| 33 |
|
| 34 |
+
$(this.evCtx).on("precarga:inicio", (event, params) => {
|
| 35 |
+
this.precargaInicio()
|
| 36 |
+
});
|
| 37 |
+
$(this.evCtx).on("precarga:mensaje", (event, params) => {
|
| 38 |
+
this.precargaMensaje2(params)}
|
| 39 |
+
);
|
| 40 |
+
$(this.evCtx).on("precarga:fin", (event, params) => {
|
| 41 |
+
this.precargaFin()
|
| 42 |
+
});
|
| 43 |
|
| 44 |
|
| 45 |
|