fix: strip spaces in FormatMatchingModelName to match model name variants like Seedance 2.0
This commit is contained in:
parent
06aa707141
commit
4e8d2b8057
|
|
@ -870,6 +870,8 @@ func GetCompletionRatioCopy() map[string]float64 {
|
|||
|
||||
// 转换模型名,减少渠道必须配置各种带参数模型
|
||||
func FormatMatchingModelName(name string) string {
|
||||
// 去除空格,使 "Seedance 2.0" 与 "Seedance2.0" 等变体能匹配
|
||||
name = strings.ReplaceAll(name, " ", "")
|
||||
|
||||
if strings.HasPrefix(name, "gemini-2.5-flash-lite") {
|
||||
name = handleThinkingBudgetModel(name, "gemini-2.5-flash-lite", "gemini-2.5-flash-lite-thinking-*")
|
||||
|
|
|
|||
Loading…
Reference in New Issue