Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
  • Loading branch information
alexwolfmsft and scottaddie committed Jul 18, 2024
1 parent e15d859 commit 2b2d3b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/azure/sdk/protocol-convenience-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The preceding code demonstrates the following `Azure.Core` convenience method pa

The following code uses a `ContentSafetyClient` to call the `AnalyzeText` protocol method:

:::code source="snippets/protocol-convenience-methods/AzureCoreProtocol/Program.cs" highlight="18-20":::
:::code source="snippets/protocol-convenience-methods/AzureCoreProtocol/Program.cs" highlight="18-23":::

The preceding code demonstrates the following protocol method patterns:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.ClientModel;

// Create the client
OpenAIClient client = new("your-openai-api-key");
OpenAIClient client = new("<your-openai-api-key>");
ChatClient chatClient = client.GetChatClient("gpt-4");

// Call the convenience method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Text.Json;

// Create the client
OpenAIClient client = new("your-openai-api-key");
OpenAIClient client = new("<your-openai-api-key>");
ChatClient chatClient = client.GetChatClient("gpt-4");

// Create the request content
Expand Down

0 comments on commit 2b2d3b2

Please sign in to comment.