File tree Expand file tree Collapse file tree
openfang-cli/src/tui/screens Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ members = [
1818]
1919
2020[workspace .package ]
21- version = " 0.3.9 "
21+ version = " 0.3.10 "
2222edition = " 2021"
2323license = " Apache-2.0 OR MIT"
2424repository = " https://github.com/RightNow-AI/openfang"
Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments