mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	Merge pull request #5205 from ConnectAI-E/fix/azure-summary
fix: azure summary
This commit is contained in:
		@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user