Skip to content

Commit 87f02f7

Browse files
authored
Update csharp.md
1 parent 9093beb commit 87f02f7

File tree

1 file changed

+2
-2
lines changed
  • articles/ai-foundry/model-inference/includes/use-image-embeddings

1 file changed

+2
-2
lines changed

articles/ai-foundry/model-inference/includes/use-image-embeddings/csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ First, create the client to consume the model. The following code uses an endpoi
3636

3737

3838
```csharp
39-
EmbeddingsClient client = new EmbeddingsClient(
39+
ImageEmbeddingsClient client = new ImageEmbeddingsClient(
4040
new Uri("https://<resource>.services.ai.azure.com/models"),
4141
new AzureKeyCredential(Environment.GetEnvironmentVariable("AZURE_INFERENCE_CREDENTIAL"))
4242
);
@@ -51,7 +51,7 @@ BearerTokenAuthenticationPolicy tokenPolicy = new BearerTokenAuthenticationPolic
5151

5252
clientOptions.AddPolicy(tokenPolicy, HttpPipelinePosition.PerRetry);
5353

54-
client = new EmbeddingsClient(
54+
ImageEmbeddingsClient client = new ImageEmbeddingsClient(
5555
new Uri("https://<resource>.services.ai.azure.com/models"),
5656
credential,
5757
clientOptions

0 commit comments

Comments
 (0)