-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Typo in dotnet/samples/Hello/HelloAIAgents/Program.cs #5186
Copy link
Copy link
Labels
dotnetissues related to AutoGen.Netissues related to AutoGen.Net
Description
What happened?
autogen\dotnet\samples\Hello\HelloAIAgents>dotnet run
fails:
Unhandled exception. System.InvalidOperationException: No connection string named 'HelloAIAgents' was found. Ensure a corresponding Aspire service was registered.
What did you expect to happen?
autogen\dotnet\samples\Hello\HelloAIAgents>dotnet run
runs fine
How can we reproduce it (as minimally and precisely as possible)?
autogen\dotnet\samples\Hello\HelloAIAgents>dotnet run
The issue is a typo in dotnet/samples/Hello/HelloAIAgents/Program.cs.
Fix:
-builder.Configuration["ConectionStrings:HelloAIAgents"] = Environment.GetEnvironmentVariable("AZURE_OPENAI_CONNECTION_STRING");
+builder.Configuration["ConnectionStrings:HelloAIAgents"] = Environment.GetEnvironmentVariable("AZURE_OPENAI_CONNECTION_STRING");
AutoGen version
Commit b375d4b
Which package was this bug in
Core
Model used
gpt-4o
Python version
No response
Operating system
WSL
Any additional info you think would be helpful for fixing this bug
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dotnetissues related to AutoGen.Netissues related to AutoGen.Net