mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	fix: extend model check in GetModelModalities function to include additional models
This commit is contained in:
		@@ -31,7 +31,10 @@ func GetModelModalities(model string) []string {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Until 2025-03-26, the following models do not accept the responseModalities field
 | 
			
		||||
	if model == "gemini-2.5-pro-exp-03-25" {
 | 
			
		||||
	if model == "gemini-2.5-pro-exp-03-25" ||
 | 
			
		||||
		model == "aqa" ||
 | 
			
		||||
		strings.HasPrefix(model, "gemma") ||
 | 
			
		||||
		strings.HasPrefix(model, "text-embed") {
 | 
			
		||||
		return nil
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user