소스 검색

Merge branch 'Calcium-Ion:main' into pr

iszcz 1 년 전
부모
커밋
b31fadd74f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      common/model-ratio.go

+ 1 - 1
common/model-ratio.go

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