Merge pull request #5205 from ConnectAI-E/fix/azure-summary

fix: azure summary
This commit is contained in:
Lloyd Zhou 2024-08-06 11:23:00 +08:00 committed by GitHub
commit 94c4cf0624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

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