Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

feat: add z.ai post-process provider (#849)

Mathieu Dupuisf8ee7fce7c19
diff --git a/src-tauri/src/settings.rs b/src-tauri/src/settings.rs
index 9468a84f..494f17b1 100644
--- a/src-tauri/src/settings.rs
+++ b/src-tauri/src/settings.rs
@@ -459,6 +459,14 @@ fn default_post_process_providers() -> Vec<PostProcessProvider> {
models_endpoint: Some("/models".to_string()),
supports_structured_output: true,
},
+ PostProcessProvider {
+ id: "zai".to_string(),
+ label: "Z.AI".to_string(),
+ base_url: "https://api.z.ai/api/paas/v4".to_string(),
+ allow_base_url_edit: false,
+ models_endpoint: Some("/models".to_string()),
+ supports_structured_output: true,
+ },
PostProcessProvider {
id: "openrouter".to_string(),
label: "OpenRouter".to_string(),