Skip to content

Commit e6b6fa0

Browse files
committed
fixes
1 parent fabc448 commit e6b6fa0

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ The app uses the [`Microsoft.Extensions.AI`](https://www.nuget.org/packages/Micr
123123
124124
1. Read the `benefits.md` file content and use it to create a `prompt` for model. The prompt instructs the model to summarize the file text content.
125125
126-
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="13-18":::
126+
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="13-19":::
127127
128128
1. Call the `InvokePromptAsync` function to send the `prompt` to the model to generate a response.
129129
130-
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="20-22":::
130+
:::code language="csharp" source="snippets/prompt-completion/openai/program.cs" range="21-23":::
131131
132132
1. Use the `dotnet run` command to run the app:
133133

docs/ai/quickstarts/snippets/prompt-completion/azure-openai/Program.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
.AsChatClient(deployment);
1313

1414
// Create and print out the prompt
15-
string prompt =
16-
$"""Please summarize the the following text in 20 words or less:
17-
{File.ReadAllText("benefits.md")}""";
18-
15+
string prompt = $"""
16+
summarize the the following text in 20 words or less:
17+
{File.ReadAllText("benefits.md")}
18+
""";
19+
1920
Console.WriteLine($"user >>> {prompt}");
2021

2122
// Submit the prompt and print out the response

docs/ai/quickstarts/snippets/prompt-completion/openai/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
new OpenAIClient(key).AsChatClient(model);
1212

1313
// Create and print out the prompt
14-
string prompt =
15-
$"""Please summarize the the following text in 20 words or less:
16-
{File.ReadAllText("benefits.md")}""";
14+
string prompt = $"""
15+
summarize the the following text in 20 words or less:
16+
{File.ReadAllText("benefits.md")}
17+
""";
1718

1819
Console.WriteLine($"user >>> {prompt}");
1920

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
> [!NOTE]
2-
> You can also use [Semantic Kernel](/semantic-kernel) to accomplish the tasks in this article. Semantic Kernel is a lightweight, open-source development kit that lets you easily build AI agents and integrate the latest AI models into your C#, Python, or Java codebase.
2+
> You can also use [Semantic Kernel](/semantic-kernel) to accomplish the tasks in this article. Semantic Kernel is a lightweight, open-source SDK that lets you build AI agents and integrate the latest AI models into your .NET apps.

0 commit comments

Comments
 (0)