Skip to content

Commit 7c5fec5

Browse files
address pr review comments
1 parent 757196c commit 7c5fec5

File tree

1 file changed

+3
-3
lines changed
  • dotnet/samples/Demos/ModelContextProtocolClientServer/MCPClient

1 file changed

+3
-3
lines changed

dotnet/samples/Demos/ModelContextProtocolClientServer/MCPClient/Program.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ private static Kernel CreateKernelWithChatCompletionService()
6161

6262
if (config["OpenAI:ApiKey"] is not { } apiKey)
6363
{
64-
string message = "Please provide a valid OpenAI:ApiKey to run this sample. See the associated README.md for more details.";
65-
Console.Error.WriteLine(message);
66-
throw new InvalidOperationException(message);
64+
const string Message = "Please provide a valid OpenAI:ApiKey to run this sample. See the associated README.md for more details.";
65+
Console.Error.WriteLine(Message);
66+
throw new InvalidOperationException(Message);
6767
}
6868

6969
string modelId = config["OpenAI:ChatModelId"] ?? "gpt-4o-mini";

0 commit comments

Comments
 (0)