From 5eb204430cd178cb5f0ad20a05a2497c5ddb87bd Mon Sep 17 00:00:00 2001 From: Shilei Liu Date: Fri, 23 Jan 2026 17:46:34 +0800 Subject: [PATCH 1/2] change temperature into most common default 1.0; add BEARER_TOKEN placeholder for local debugging --- .../agent-framework/sample-agent/Agent/MyAgent.cs | 4 +++- .../sample-agent/Properties/launchSettings.json | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 dotnet/agent-framework/sample-agent/Properties/launchSettings.json diff --git a/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs b/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs index 394fb781..d59a459b 100644 --- a/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs +++ b/dotnet/agent-framework/sample-agent/Agent/MyAgent.cs @@ -310,7 +310,9 @@ await A365OtelWrapper.InvokeObservedAgentOperation( // Create Chat Options with tools: var toolOptions = new ChatOptions { - Temperature = (float?)0.2, + // Note: Some models (e.g., o1, o3, gpt-5.2-chat) require Temperature = 1(default) because they do not support other values. + // Standard GPT models (GPT-3.5, GPT-4) typically support temperature range 0.0 to 2.0. + Temperature = (float?)1, Tools = toolList }; diff --git a/dotnet/agent-framework/sample-agent/Properties/launchSettings.json b/dotnet/agent-framework/sample-agent/Properties/launchSettings.json new file mode 100644 index 00000000..22918160 --- /dev/null +++ b/dotnet/agent-framework/sample-agent/Properties/launchSettings.json @@ -0,0 +1,13 @@ +{ + "profiles": { + "AgentFrameworkSampleAgent": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "BEARER_TOKEN": "---" + }, + "applicationUrl": "https://localhost:62738;http://localhost:62739" + } + } +} \ No newline at end of file From 49bcf95ce6724f6e138ab3de15723c0f9085aaf8 Mon Sep 17 00:00:00 2001 From: Shilei Liu Date: Tue, 27 Jan 2026 10:06:37 +0800 Subject: [PATCH 2/2] adopt suggestion --- .../agent-framework/sample-agent/Properties/launchSettings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/agent-framework/sample-agent/Properties/launchSettings.json b/dotnet/agent-framework/sample-agent/Properties/launchSettings.json index 22918160..51380547 100644 --- a/dotnet/agent-framework/sample-agent/Properties/launchSettings.json +++ b/dotnet/agent-framework/sample-agent/Properties/launchSettings.json @@ -5,7 +5,7 @@ "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development", - "BEARER_TOKEN": "---" + "BEARER_TOKEN": "" }, "applicationUrl": "https://localhost:62738;http://localhost:62739" }