mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
- Replace OPENAI_APIKEY with OPENAI_API_KEY across all samples - Replace AZURE_FOUNDRY_OPENAI_APIKEY with AZURE_FOUNDRY_OPENAI_API_KEY - Ensures consistency with OpenAI's standard naming convention - Applies to .NET and Python samples Fixes #1001 Co-authored-by: Alexander Zarei <alzarei@users.noreply.github.com>
This commit is contained in:
co-authored by
Alexander Zarei
parent
7be860e4c4
commit
2f0b2db12a
+1
-1
@@ -20,7 +20,7 @@ IChatClient anthropic = new Anthropic.AnthropicClient(
|
||||
.AsIChatClient("claude-sonnet-4-20250514");
|
||||
|
||||
IChatClient openai = new OpenAI.OpenAIClient(
|
||||
Environment.GetEnvironmentVariable("OPENAI_APIKEY")!).GetChatClient("gpt-4o-mini")
|
||||
Environment.GetEnvironmentVariable("OPENAI_API_KEY")!).GetChatClient("gpt-4o-mini")
|
||||
.AsIChatClient();
|
||||
|
||||
// Define our agents.
|
||||
|
||||
Reference in New Issue
Block a user