xiongzhu 2 лет назад
Родитель
Сommit
22be4c20d8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/chat/Chat.vue

+ 2 - 2
src/views/chat/Chat.vue

@@ -131,7 +131,7 @@ async function onConversation() {
         let lastText = ''
         const fetchChatAPIOnce = async () => {
             await fetchChatAPIProcess<Chat.ConversationResponse>({
-                url: (Number(company.value?.id) || 0) > 0 ? `/org/${company.value.id}/streamAsk` : null,
+                url: (Number(company.value?.id) || 0) > 0 ? `/org/${company.value.id}/ask` : null,
                 prompt: message,
                 options,
                 signal: controller.signal,
@@ -237,7 +237,7 @@ async function onRegenerate(index: number) {
         let lastText = ''
         const fetchChatAPIOnce = async () => {
             await fetchChatAPIProcess<Chat.ConversationResponse>({
-                url: (Number(company.value?.id) || 0) > 0 ? `/org/${company.value.id}/streamAsk` : null,
+                url: (Number(company.value?.id) || 0) > 0 ? `/org/${company.value.id}/ask` : null,
                 prompt: message,
                 options,
                 signal: controller.signal,