Skip to content

Commit

Permalink
Merge pull request #5205 from ConnectAI-E/fix/azure-summary
Browse files Browse the repository at this point in the history
fix: azure summary
  • Loading branch information
lloydzhou authored Aug 6, 2024
2 parents fec80c6 + 3da717d commit 94c4cf0
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 94c4cf0

Please sign in to comment.