mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
fix(routing): match provider model names in admin routing counts
This commit is contained in:
@@ -784,7 +784,9 @@ function targetFormatsForEndpoint(
|
||||
provider: RoutingProviderInfo,
|
||||
endpoint: RoutingEndpointInfo
|
||||
): string[] {
|
||||
return STANDARD_ROUTING_API_FORMATS.filter(format =>
|
||||
const endpointFormat = normalizeLegacyOpenAIFormatAlias(endpoint.api_format)
|
||||
const candidateFormats = Array.from(new Set([...STANDARD_ROUTING_API_FORMATS, endpointFormat]))
|
||||
return candidateFormats.filter(format =>
|
||||
endpointSupportsClientFormat(provider, endpoint, format, endpoint.api_format)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user