feat: NormalizedProvider

This commit is contained in:
leokun committed 2026-08-25 20:50:57 +08:00
1 parent 5f87357681
commit 081e1f50e2
8 files changed
+169 -14

No files matched your search

+4 -1
View File
@@ -908,7 +908,10 @@ mod tests {
assert_eq!(listed[0].api_key.as_deref(), Some("secret"));
assert!(listed[0].has_api_key);
let without_key = ProviderEndpointInput { api_key: None, ..provider() };
let without_key = ProviderEndpointInput {
api_key: None,
..provider()
};
let empty = store.create_provider(&without_key).await.unwrap();
assert_eq!(empty.api_key, None);
assert!(!empty.has_api_key);