Skip to content

Commit 74ac992

Browse files
committed
issue fixes
1 parent 53e1b31 commit 74ac992

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ members = [
1818
]
1919

2020
[workspace.package]
21-
version = "0.3.9"
21+
version = "0.3.10"
2222
edition = "2021"
2323
license = "Apache-2.0 OR MIT"
2424
repository = "https://github.com/RightNow-AI/openfang"

crates/openfang-api/src/routes.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,6 +2025,12 @@ pub async fn configure_channel(
20252025
unsafe {
20262026
std::env::set_var(env_var, value);
20272027
}
2028+
// Also write the env var NAME to config.toml so the channel section
2029+
// is not empty and the kernel knows which env var to read.
2030+
config_fields.insert(
2031+
field_def.key.to_string(),
2032+
(env_var.to_string(), FieldType::Text),
2033+
);
20282034
} else {
20292035
// Config field — collect for TOML write with type info
20302036
config_fields.insert(field_def.key.to_string(), (value.to_string(), field_def.field_type));

crates/openfang-cli/src/tui/screens/wizard.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,24 @@ const PROVIDERS: &[ProviderInfo] = &[
109109
default_model: "Meta-Llama-3.3-70B-Instruct",
110110
needs_key: true,
111111
},
112+
ProviderInfo {
113+
name: "moonshot",
114+
env_var: "MOONSHOT_API_KEY",
115+
default_model: "moonshot-v1-128k",
116+
needs_key: true,
117+
},
118+
ProviderInfo {
119+
name: "zhipu",
120+
env_var: "ZHIPU_API_KEY",
121+
default_model: "glm-4-plus",
122+
needs_key: true,
123+
},
124+
ProviderInfo {
125+
name: "zhipu_coding",
126+
env_var: "ZHIPU_API_KEY",
127+
default_model: "codegeex-4",
128+
needs_key: true,
129+
},
112130
ProviderInfo {
113131
name: "ollama",
114132
env_var: "OLLAMA_API_KEY",

0 commit comments

Comments
 (0)