mirror of
				https://github.com/vastxie/99AI.git
				synced 2025-11-04 15:53:43 +08:00 
			
		
		
		
	Update store.js
修复阿里/清华模型无法使用的问题
This commit is contained in:
		
							
								
								
									
										8
									
								
								dist/modules/chatgpt/store.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								dist/modules/chatgpt/store.js
									
									
									
									
										vendored
									
									
								
							@@ -31,15 +31,7 @@ class NineStore {
 | 
			
		||||
        let messages = [];
 | 
			
		||||
        let nextNumTokensEstimate = 0;
 | 
			
		||||
        if (systemMessage) {
 | 
			
		||||
            const specialModels = ['gemini-pro', 'ERNIE', 'hunyuan'];
 | 
			
		||||
            const isSpecialModel = model && specialModels.some(specialModel => model.includes(specialModel));
 | 
			
		||||
            if (isSpecialModel) {
 | 
			
		||||
                messages.push({ role: 'user', content: systemMessage, name });
 | 
			
		||||
                messages.push({ role: 'assistant', content: "好的", name });
 | 
			
		||||
            }
 | 
			
		||||
            else {
 | 
			
		||||
                messages.push({ role: 'system', content: systemMessage, name });
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        const systemMessageOffset = messages.length;
 | 
			
		||||
        let round = 0;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user