Skip to content

Commit

Permalink
Functionality restored
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalvarezl committed Sep 13, 2024
1 parent 20226f5 commit 074e5ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/openai/inference/src/clients/azure_openai_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ impl BaseOpenAIClientMethods for AzureOpenAIClient {
// TODO gracefully handle this
Ok(self
.endpoint()
.join(deployment_name.expect("deployment_name should be provided"))?)
.join("openai/")?
.join("deployments/")?
.join(&format!("{}/", deployment_name.expect("Deployment name is required")))?)
}

fn pipeline(&self) -> &azure_core::Pipeline {
Expand Down

0 comments on commit 074e5ee

Please sign in to comment.