mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
fix(scheduler): 恢复正则模型映射作为上游模型 (#355)
保留 provider_model_mappings 的优先级选择逻辑,但恢复 GlobalModel model_mappings 正则命中后的行为:使用命中的 allowed_model 作为实际上游 mapped_model。 修复了 #354 请求绕过基于正则表达式的模型映射的问题
This commit is contained in:
@@ -641,7 +641,7 @@ async fn data_state_reads_minimal_candidate_selection_with_auth_filters() {
|
||||
assert_eq!(selection[1].key_id, "key-3");
|
||||
assert_eq!(
|
||||
selection[1].selected_provider_model_name,
|
||||
"gpt-4.1-canary".to_string()
|
||||
"gpt-4.1-edge".to_string()
|
||||
);
|
||||
assert_eq!(
|
||||
selection[1].mapping_matched_model,
|
||||
|
||||
Reference in New Issue
Block a user