Spaces:
Runtime error
Runtime error
Miguel Diaz commited on
Commit ·
d2c52b6
1
Parent(s): b44092b
fix: dev test
Browse files- static/js/chatHandler.js +5 -4
static/js/chatHandler.js
CHANGED
|
@@ -38,8 +38,7 @@ class ChatGPT{
|
|
| 38 |
});
|
| 39 |
$(document).on("chat:enviar", (event, params) => {
|
| 40 |
this.reintentos = 0;
|
| 41 |
-
|
| 42 |
-
this.enviar2(params)
|
| 43 |
});
|
| 44 |
$(document).on("enviar:reintentar", (event, params) => {
|
| 45 |
this.reintentos++;
|
|
@@ -148,8 +147,10 @@ class ChatGPT{
|
|
| 148 |
},
|
| 149 |
});
|
| 150 |
})
|
| 151 |
-
.then(data => console.log('Solicitud finalizada', data))
|
| 152 |
-
.catch(err =>
|
|
|
|
|
|
|
| 153 |
|
| 154 |
|
| 155 |
}
|
|
|
|
| 38 |
});
|
| 39 |
$(document).on("chat:enviar", (event, params) => {
|
| 40 |
this.reintentos = 0;
|
| 41 |
+
this.enviar(params);
|
|
|
|
| 42 |
});
|
| 43 |
$(document).on("enviar:reintentar", (event, params) => {
|
| 44 |
this.reintentos++;
|
|
|
|
| 147 |
},
|
| 148 |
});
|
| 149 |
})
|
| 150 |
+
.then(data => console.log('Solicitud finalizada', data))
|
| 151 |
+
.catch(err =>{
|
| 152 |
+
console.log('Solicitud fallida', err)
|
| 153 |
+
});
|
| 154 |
|
| 155 |
|
| 156 |
}
|