Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"

This reverts commit a45513a7a6.
This commit is contained in:
CaIon
2025-09-13 12:53:28 +08:00
parent 59d6ff0caf
commit 1a8d781721
9 changed files with 20 additions and 111 deletions

View File

@@ -336,7 +336,7 @@ func CountRequestToken(c *gin.Context, meta *types.TokenCountMeta, info *relayco
for i, file := range meta.Files {
switch file.FileType {
case types.FileTypeImage:
if info.RelayFormat == types.RelayFormatGemini && !strings.HasPrefix(model, "gemini-2.5-flash-image-preview") {
if info.RelayFormat == types.RelayFormatGemini {
tkm += 256
} else {
token, err := getImageToken(file, model, info.IsStream)