We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 757196c commit 7c5fec5Copy full SHA for 7c5fec5
dotnet/samples/Demos/ModelContextProtocolClientServer/MCPClient/Program.cs
@@ -61,9 +61,9 @@ private static Kernel CreateKernelWithChatCompletionService()
61
62
if (config["OpenAI:ApiKey"] is not { } apiKey)
63
{
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);
+ const string Message = "Please provide a valid OpenAI:ApiKey to run this sample. See the associated README.md for more details.";
+ Console.Error.WriteLine(Message);
+ throw new InvalidOperationException(Message);
67
}
68
69
string modelId = config["OpenAI:ChatModelId"] ?? "gpt-4o-mini";
0 commit comments