mirror of
				https://github.com/linux-do/new-api.git
				synced 2025-11-04 13:23:42 +08:00 
			
		
		
		
	feat: update model ratio
This commit is contained in:
		@@ -111,6 +111,8 @@ var DefaultModelRatio = map[string]float64{
 | 
			
		||||
	"command-light-nightly": 0.5,
 | 
			
		||||
	"command-r":             0.25,
 | 
			
		||||
	"command-r-plus	":       1.5,
 | 
			
		||||
	"deepseek-chat":         0.07,
 | 
			
		||||
	"deepseek-coder":        0.07,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var DefaultModelPrice = map[string]float64{
 | 
			
		||||
@@ -240,6 +242,9 @@ func GetCompletionRatio(name string) float64 {
 | 
			
		||||
			return 2
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if strings.HasPrefix(name, "deepseek") {
 | 
			
		||||
		return 2
 | 
			
		||||
	}
 | 
			
		||||
	switch name {
 | 
			
		||||
	case "llama2-70b-4096":
 | 
			
		||||
		return 0.8 / 0.7
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user