fix(auth): 授权 Responses Compact 伴随端点

(cherry picked from commit e8afa03e45)
This commit is contained in:
MMEXA
2026-07-16 00:32:14 +08:00
committed by elky
parent ff7988430d
commit 598b2fb374
2 changed files with 43 additions and 3 deletions
@@ -827,7 +827,7 @@ mod tests {
};
#[test]
fn api_format_policy_intersection_preserves_search_companion_scope() {
fn api_format_policy_intersection_preserves_companion_scope() {
assert_eq!(
aether_ai_formats::intersect_api_format_allowed_lists(
&["openai:search".to_string()],
@@ -842,6 +842,20 @@ mod tests {
),
vec!["openai:search".to_string()]
);
assert_eq!(
aether_ai_formats::intersect_api_format_allowed_lists(
&["openai:responses".to_string()],
&["openai:responses:compact".to_string()],
),
vec!["openai:responses:compact".to_string()]
);
assert_eq!(
aether_ai_formats::intersect_api_format_allowed_lists(
&["openai:responses:compact".to_string()],
&["openai:responses".to_string()],
),
vec!["openai:responses:compact".to_string()]
);
assert!(aether_ai_formats::intersect_api_format_allowed_lists(
&["openai:search".to_string()],
&["openai:chat".to_string()],