Skip to content

Commit

Permalink
fix code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-FrançoisMillet authored and Jean-FrançoisMillet committed Feb 5, 2025
1 parent 051354b commit 8ace9b6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions crates/goose/src/providers/azure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ impl AzureProvider {
let api_key: String = config.get_secret("AZURE_OPENAI_API_KEY")?;
let endpoint: String = config.get("AZURE_OPENAI_ENDPOINT")?;
let deployment_name: String = config.get("AZURE_OPENAI_DEPLOYMENT_NAME")?;
let api_version: String = config.get("AZURE_OPENAI_API_VERSION").unwrap_or_else(|_| AZURE_DEFAULT_API_VERSION.to_string());
let api_version: String = config
.get("AZURE_OPENAI_API_VERSION")
.unwrap_or_else(|_| AZURE_DEFAULT_API_VERSION.to_string());

let client = Client::builder()
.timeout(Duration::from_secs(600))
Expand Down Expand Up @@ -102,7 +104,12 @@ impl Provider for AzureProvider {
false,
Some("Name of your Azure OpenAI deployment"),
),
ConfigKey::new("AZURE_OPENAI_API_VERSION", false, false, Some("Azure OpenAI API version, default: 2024-10-21")),
ConfigKey::new(
"AZURE_OPENAI_API_VERSION",
false,
false,
Some("Azure OpenAI API version, default: 2024-10-21"),
),
],
)
}
Expand Down

0 comments on commit 8ace9b6

Please sign in to comment.