mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-09 18:59:50 +08:00
fix(auth): 授权 Responses Compact 伴随端点
(cherry picked from commit e8afa03e45)
This commit is contained in:
@@ -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()],
|
||||
|
||||
Reference in New Issue
Block a user