.Net: Bug: Agent Failure - Run terminated: failed [..]: No connection matching model: gpt-4o
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;
- Go to '../concepts/agents/AzureAIAgent_Streaming'
- Click on 'Run Test'
- Scroll down to 'Test Detail Summary'
- 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.
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!
I see the issue.
My AI Project connection string leads to a few azure ai services.
The default AI service doesn't have the gpt-o model, but the other AI service that I created and connected to does.
Seems like the AI project connection string has a default AI service it uses. So then would you know how in AI Foundry to make the pro connection string references the other AI service rk-ai-services-eastus2_aoaihttps://ai.azure.com/managementCenter/project/connections/rk-ai-services-eastus2_aoai/details?wsid=/subscriptions/f1a72634-3a90-4cdb-a6d6-069cf5115068/resourcegroups/openai/providers/Microsoft.MachineLearningServices/workspaces/project-rkopenai&tid=d4697920-75d5-4b07-bdbb-ca7abb88444d&isDataConnection=false which has my gpt-4o model?
From: Sophia Lagerkrans-Pandey @.> Sent: Monday, April 28, 2025 11:51 AM To: microsoft/semantic-kernel @.> Cc: Roy Kim @.>; Author @.> Subject: Re: [microsoft/semantic-kernel] .Net: Bug: Agent Failure - Run terminated: failed [..]: No connection matching model: gpt-4o (Issue #11764)
[https://avatars.githubusercontent.com/u/163188263?s=20&v=4]sophialagerkranspandey left a comment (microsoft/semantic-kernel#11764)https://github.com/microsoft/semantic-kernel/issues/11764#issuecomment-2835707626
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!
— Reply to this email directly, view it on GitHubhttps://github.com/microsoft/semantic-kernel/issues/11764#issuecomment-2835707626, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAO6JIXAMEGKGKCUTJBYFBT23ZE67AVCNFSM6AAAAAB37ISEAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMZVG4YDONRSGY. You are receiving this because you authored the thread.Message ID: @.***>