mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-19 04:40:52 +08:00
fix(executor): only strip maxOutputTokens for non-claude models
This commit is contained in:
@@ -1419,7 +1419,9 @@ func geminiToAntigravity(modelName string, payload []byte, projectID string) []b
|
|||||||
})
|
})
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if !strings.Contains(modelName, "claude") {
|
||||||
template, _ = sjson.Delete(template, "request.generationConfig.maxOutputTokens")
|
template, _ = sjson.Delete(template, "request.generationConfig.maxOutputTokens")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user