Skip to content

Typo in dotnet/samples/Hello/HelloAIAgents/Program.cs #5186

@raimondasl

Description

@raimondasl

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

Metadata

Metadata

Assignees

Labels

dotnetissues related to AutoGen.Net

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions