Skip to content

Commit

Permalink
use keyring for databricks host
Browse files Browse the repository at this point in the history
  • Loading branch information
baxen committed Nov 28, 2024
1 parent 3d3f2bd commit 46afb7d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/goose-cli/src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,9 @@ pub fn set_provider_config(provider_name: &str, model: String) -> ProviderConfig
})
}
PROVIDER_DATABRICKS => {
let host = get_env_value_or_input(
"DATABRICKS_HOST",
"Please enter your Databricks host:",
false,
);
let host = get_or_set_key(provider_name, "DATABRICKS_HOST")
.expect("Failed to get databricks host");

ProviderConfig::Databricks(DatabricksProviderConfig {
host: host.clone(),
// TODO revisit configuration
Expand Down

0 comments on commit 46afb7d

Please sign in to comment.