Skip to content

.Net: Bug: Agent Failure - Run terminated: failed [..]: No connection matching model: gpt-4o #11764

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

Closed
RoyKimYYZ opened this issue Apr 28, 2025 · 2 comments
Labels
.NET Issue or Pull requests regarding .NET code

Comments

@RoyKimYYZ
Copy link

Describe the bug
As a beginner to semantic kernal, going through basic get started example - ../concepts/agents/AzureAIAgent_Streaming
I set the settings.json to my azure ai foundry/auzure open ai. Ensure the deployment name exists and is matching in my settings.json
Note other unit test works - ..\dotnet\samples\GettingStartedWithAgents\AzureAIAgent\Step01_AzureAIAgent.cs

To Reproduce
Steps to reproduce the behavior:
I have already added to secrets.json
"AzureAI:ConnectionString" : "eastus.api.azureml.ms;;rk-ai;rk-aihub-project"
"AzureAI:ChatModelId": "gpt-4o"

  1. Go to '../concepts/agents/AzureAIAgent_Streaming'
  2. Click on 'Run Test'
  3. Scroll down to 'Test Detail Summary'
  4. See error:
     Agents.AzureAIAgent_Streaming.UseStreamingAgentAsync
     Source: AzureAIAgent_Streaming.cs line 19
     Duration: 3.2 sec
    Message: 
    Microsoft.SemanticKernel.KernelException : Agent Failure - Run terminated: failed [run_N99S8jqKrzbKJAW5OZgBV4Mq]: No connection matching model: gpt-4o

Expected behavior
A clear and concise description of what you expected to happen.

Platform

  • Language: C#]
  • AI model: Azure Open AI
    Model name
    gpt-4o
    Model version
    2024-11-20
  • IDE: [Visual Studio]
  • OS: [Windows]

Additional context
Add any other context about the problem here.

@RoyKimYYZ RoyKimYYZ added the bug Something isn't working label Apr 28, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Apr 28, 2025
@github-actions github-actions bot changed the title Bug: Agent Failure - Run terminated: failed [..]: No connection matching model: gpt-4o .Net: Bug: Agent Failure - Run terminated: failed [..]: No connection matching model: gpt-4o Apr 28, 2025
@sophialagerkranspandey
Copy link
Contributor

Can you check that for this project you have the gpt-4o model is deployed? Can you also check that the deployment name is correct? Thanks!

@sophialagerkranspandey sophialagerkranspandey removed bug Something isn't working triage labels Apr 28, 2025
@RoyKimYYZ
Copy link
Author

RoyKimYYZ commented Apr 28, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
.NET Issue or Pull requests regarding .NET code
Projects
None yet
Development

No branches or pull requests

3 participants