mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 16:37:46 +08:00
fix(gateway): route format rules through serving facade
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@ fn provider_query_model_mapping_matches_endpoint(
|
||||
) -> bool {
|
||||
let api_format_matches = mapping.api_formats.as_ref().is_none_or(|api_formats| {
|
||||
api_formats.iter().any(|value| {
|
||||
aether_ai_formats::api_format_permission_covers(value, &endpoint.api_format)
|
||||
crate::ai_serving::api_format_permission_covers(value, &endpoint.api_format)
|
||||
})
|
||||
});
|
||||
if !api_format_matches {
|
||||
|
||||
@@ -220,7 +220,7 @@ fn users_me_usage_api_format_defaults_to_non_stream(item: &StoredRequestUsageAud
|
||||
let Some(value) = api_format else {
|
||||
return false;
|
||||
};
|
||||
aether_ai_formats::api_format_defaults_to_non_stream(value)
|
||||
crate::ai_serving::api_format_defaults_to_non_stream(value)
|
||||
}
|
||||
|
||||
fn users_me_usage_request_body_implies_default_non_stream(item: &StoredRequestUsageAudit) -> bool {
|
||||
|
||||
@@ -38,7 +38,7 @@ pub(crate) fn provider_catalog_key_supports_format(
|
||||
}
|
||||
formats
|
||||
.iter()
|
||||
.any(|candidate| aether_ai_formats::api_format_permission_covers(candidate, api_format))
|
||||
.any(|candidate| crate::ai_serving::api_format_permission_covers(candidate, api_format))
|
||||
}
|
||||
|
||||
pub(crate) fn decrypt_catalog_secret_with_fallbacks(
|
||||
|
||||
Reference in New Issue
Block a user