agregado log para ver cuando se envian los mensajes
This commit is contained in:
@@ -15,8 +15,6 @@ export const useChat = defineStore('chat', {
|
||||
|
||||
actions: {
|
||||
add (item) {
|
||||
console.log('agregado');
|
||||
|
||||
this.items.push(item)
|
||||
},
|
||||
|
||||
@@ -41,6 +39,8 @@ export const useChat = defineStore('chat', {
|
||||
},
|
||||
|
||||
async sendMessage(text) {
|
||||
console.log('enviando mensaje');
|
||||
|
||||
const routerUrl =
|
||||
import.meta.env.VITE_CONVERSATION_LAYER_ROUTER_URL ||
|
||||
window?.RUNTIME_CONFIG?.VITE_CONVERSATION_LAYER_ROUTER_URL ||
|
||||
@@ -93,15 +93,6 @@ export const useChat = defineStore('chat', {
|
||||
});
|
||||
});
|
||||
|
||||
// Agregamos de nuevo el mensaje del usuario al principio, ya que fue omitido
|
||||
// newItems.unshift({
|
||||
// id: msgId,
|
||||
// type: 'chat',
|
||||
// owner: 'user',
|
||||
// text,
|
||||
// ts,
|
||||
// });
|
||||
|
||||
this.items = newItems;
|
||||
} else {
|
||||
console.error('Invalid conversation response format:', conversation);
|
||||
|
||||
Reference in New Issue
Block a user