Skip to content

Commit

Permalink
fix: azure summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Aug 6, 2024
1 parent fec80c6 commit 3da717d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/store/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -570,6 +571,7 @@ export const useChatStore = createPersistStore(
config: {
model: getSummarizeModel(session.mask.modelConfig.model),
stream: false,
providerName,
},
onFinish(message) {
get().updateCurrentSession(
Expand Down

0 comments on commit 3da717d

Please sign in to comment.