Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
raimondasl opened this issue Jan 24, 2025 · 0 comments · Fixed by #5187
Closed

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

raimondasl opened this issue Jan 24, 2025 · 0 comments · Fixed by #5187
Assignees
Labels
dotnet issues related to AutoGen.Net

Comments

@raimondasl
Copy link
Contributor

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

@raimondasl raimondasl added the dotnet issues related to AutoGen.Net label Jan 24, 2025
@raimondasl raimondasl self-assigned this Jan 24, 2025
raimondasl pushed a commit that referenced this issue Jan 24, 2025
raimondasl added a commit that referenced this issue Jan 24, 2025
Co-authored-by: Raimondas Lencevicius <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet issues related to AutoGen.Net
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant