Explorar o código

feat: support gpt-4-turbo

1808837298@qq.com hai 1 ano
pai
achega
f188147680
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/model-ratio.go

+ 1 - 1
common/model-ratio.go

@@ -201,7 +201,7 @@ func GetCompletionRatio(name string) float64 {
 		return 4.0 / 3.0
 	}
 	if strings.HasPrefix(name, "gpt-4") {
-		if strings.HasSuffix(name, "preview") {
+		if strings.HasSuffix(name, "gpt-4-turbo") {
 			return 3
 		}
 		return 2