issue fixes

This commit is contained in:
jaberjaber23
2026-03-04 03:34:12 +03:00
parent 53e1b31777
commit 74ac992420
3 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ members = [
]
[workspace.package]
version = "0.3.9"
version = "0.3.10"
edition = "2021"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RightNow-AI/openfang"
+6
View File
@@ -2025,6 +2025,12 @@ pub async fn configure_channel(
unsafe {
std::env::set_var(env_var, value);
}
// Also write the env var NAME to config.toml so the channel section
// is not empty and the kernel knows which env var to read.
config_fields.insert(
field_def.key.to_string(),
(env_var.to_string(), FieldType::Text),
);
} else {
// Config field — collect for TOML write with type info
config_fields.insert(field_def.key.to_string(), (value.to_string(), field_def.field_type));
@@ -109,6 +109,24 @@ const PROVIDERS: &[ProviderInfo] = &[
default_model: "Meta-Llama-3.3-70B-Instruct",
needs_key: true,
},
ProviderInfo {
name: "moonshot",
env_var: "MOONSHOT_API_KEY",
default_model: "moonshot-v1-128k",
needs_key: true,
},
ProviderInfo {
name: "zhipu",
env_var: "ZHIPU_API_KEY",
default_model: "glm-4-plus",
needs_key: true,
},
ProviderInfo {
name: "zhipu_coding",
env_var: "ZHIPU_API_KEY",
default_model: "codegeex-4",
needs_key: true,
},
ProviderInfo {
name: "ollama",
env_var: "OLLAMA_API_KEY",