mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
@@ -234,6 +234,9 @@ pub fn is_local_ai_sync_report_kind(report_kind: &str) -> bool {
|
||||
| "openai_cli_sync_success"
|
||||
| "openai_image_sync_success"
|
||||
| "openai_image_sync_error"
|
||||
| "openai_embedding_sync_success"
|
||||
| "openai_embedding_sync_error"
|
||||
| "gemini_embedding_sync_success"
|
||||
| "claude_cli_sync_success"
|
||||
| "gemini_cli_sync_success"
|
||||
| "openai_cli_sync_error"
|
||||
@@ -426,6 +429,13 @@ mod tests {
|
||||
));
|
||||
assert!(is_local_ai_sync_report_kind("openai_image_sync_success"));
|
||||
assert!(is_local_ai_sync_report_kind("openai_image_sync_error"));
|
||||
assert!(is_local_ai_sync_report_kind(
|
||||
"openai_embedding_sync_success"
|
||||
));
|
||||
assert!(is_local_ai_sync_report_kind("openai_embedding_sync_error"));
|
||||
assert!(is_local_ai_sync_report_kind(
|
||||
"gemini_embedding_sync_success"
|
||||
));
|
||||
assert!(is_local_ai_sync_report_kind("gemini_files_delete_mapping"));
|
||||
assert!(!is_local_ai_sync_report_kind("unknown_sync_kind"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user