Skip to content

Commit 074e5ee

Browse files
committed
Functionality restored
1 parent 20226f5 commit 074e5ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/openai/inference/src/clients/azure_openai_client.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ impl BaseOpenAIClientMethods for AzureOpenAIClient {
6767
// TODO gracefully handle this
6868
Ok(self
6969
.endpoint()
70-
.join(deployment_name.expect("deployment_name should be provided"))?)
70+
.join("openai/")?
71+
.join("deployments/")?
72+
.join(&format!("{}/", deployment_name.expect("Deployment name is required")))?)
7173
}
7274

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

0 commit comments

Comments
 (0)