clean up legacy openai cli adapter names

This commit is contained in:
fawney19
2026-04-26 23:59:53 +08:00
parent 5b914aa78c
commit ea3dc3257e
47 changed files with 412 additions and 572 deletions
+5 -2
View File
@@ -516,7 +516,7 @@ async fn data_state_reads_decrypted_provider_transport_snapshot() {
.expect("endpoint transport should build");
let key = sample_provider_catalog_key()
.with_transport_fields(
Some(serde_json::json!(["openai:chat", "openai:cli"])),
Some(serde_json::json!(["openai:chat", "openai:responses"])),
encrypted_api_key,
Some(encrypted_auth_config),
Some(serde_json::json!({"openai:chat": 0.8})),
@@ -547,7 +547,10 @@ async fn data_state_reads_decrypted_provider_transport_snapshot() {
assert_eq!(snapshot.endpoint.base_url, "https://api.openai.com");
assert_eq!(
snapshot.key.api_formats,
Some(vec!["openai:chat".to_string(), "openai:cli".to_string()])
Some(vec![
"openai:chat".to_string(),
"openai:responses".to_string()
])
);
assert_eq!(snapshot.key.decrypted_api_key, "sk-live-openai");
assert_eq!(