Skip to content

Commit 876db7b

Browse files
committed
fix code
1 parent 49085e4 commit 876db7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/ai/quickstarts/quickstart-openai-summarize-text.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,17 @@ The following code obtains an `IChatClient` service configured to connect to the
9595
```csharp
9696
// Create the IChatClient
9797
IChatClient client =
98-
new OpenAIClient(new Uri(endpoint), new ApiKeyCredential(key))
99-
.AsChatClient(deployment);
98+
new OpenAIClient(key)
99+
.AsChatClient(model);
100100
```
101101

102102
# [Azure OpenAI](#tab/azure-openai)
103103

104104
```csharp
105105
// Create the IChatClient
106106
IChatClient client =
107-
new OpenAIClient(key)
108-
.AsChatClient(model);
107+
new AzureOpenAIClient(new Uri(endpoint), new ApiKeyCredential(key))
108+
.AsChatClient(deployment);
109109
```
110110

111111
---

0 commit comments

Comments
 (0)