Fix regex model mapping direction

This commit is contained in:
fawney19
2026-05-11 01:43:14 +08:00
parent c9c968c2e9
commit 7b81c77424
3 changed files with 27 additions and 4 deletions

View File

@@ -815,7 +815,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-edge".to_string()
"gpt-4.1-canary".to_string()
);
assert_eq!(
selection[1].mapping_matched_model,

View File

@@ -82,7 +82,7 @@ fn resolves_mapping_matched_model_from_global_regex_mapping() {
let resolved = resolve_provider_model_name(&row, "gpt-4.1", "openai:chat")
.expect("candidate should resolve");
assert_eq!(resolved.0, "gpt-4.1-variant");
assert_eq!(resolved.0, "gpt-4.1-canary");
assert_eq!(resolved.1, Some("gpt-4.1-variant".to_string()));
}