mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-03 02:51:17 +08:00
Update misc.rs
This commit is contained in:
@@ -348,7 +348,7 @@ fn extract_env_vars_from_config(
|
|||||||
if let Some(api_key) = obj.get("api_key").and_then(|v| v.as_str()) {
|
if let Some(api_key) = obj.get("api_key").and_then(|v| v.as_str()) {
|
||||||
match app_type {
|
match app_type {
|
||||||
AppType::Gemini => {
|
AppType::Gemini => {
|
||||||
env_vars.push(("GOOGLE_API_KEY".to_string(), api_key.to_string()));
|
env_vars.push(("GEMINI_API_KEY".to_string(), api_key.to_string()));
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user