mirror of
https://github.com/githubhjs/CLIProxyAPIPlus.git
synced 2026-07-12 01:25:13 +00:00
fix(endpoint_compat): update GetModelInfo to include missing parameter for improved registry compatibility
This commit is contained in:
@@ -11,7 +11,7 @@ func resolveEndpointOverride(modelName, requestedEndpoint string) (string, bool)
|
|||||||
if modelName == "" {
|
if modelName == "" {
|
||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
info := registry.GetGlobalRegistry().GetModelInfo(modelName)
|
info := registry.GetGlobalRegistry().GetModelInfo(modelName, "")
|
||||||
if info == nil || len(info.SupportedEndpoints) == 0 {
|
if info == nil || len(info.SupportedEndpoints) == 0 {
|
||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
@@ -34,4 +34,4 @@ func endpointListContains(items []string, value string) bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user