소스 검색

fix: azure summary

Dogtiti 1 년 전
부모
커밋
3da717d9fc
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      app/store/chat.ts

+ 3 - 1
app/store/chat.ts

@@ -547,7 +547,8 @@ export const useChatStore = createPersistStore(
           return;
         }
 
-        const api: ClientApi = getClientApi(modelConfig.providerName);
+        const providerName = modelConfig.providerName;
+        const api: ClientApi = getClientApi(providerName);
 
         // remove error messages if any
         const messages = session.messages;
@@ -570,6 +571,7 @@ export const useChatStore = createPersistStore(
             config: {
               model: getSummarizeModel(session.mask.modelConfig.model),
               stream: false,
+              providerName,
             },
             onFinish(message) {
               get().updateCurrentSession(