Skip to content

Commit cd7b533

Browse files
authored
Switch failing test to new model. (#14332)
### Motivation and Context The model used by this test is deprecated and the test is blocking merges. ### Description Switch to replacement model ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
1 parent b39d95a commit cd7b533

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

‎dotnet/samples/Concepts/ChatCompletion/OpenAI_ChatCompletionWebSearch.cs‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ namespace ChatCompletion;
1212
/// <remarks>
1313
/// Currently, web search is only supported with the following models:
1414
/// <list type="bullet">
15-
/// <item>gpt-4o-search-preview</item>
16-
/// <item>gpt-4o-mini-search-preview</item>
15+
/// <item>gpt-5-search-ap</item>
1716
/// </list>
1817
/// </remarks>
1918
public class OpenAI_ChatCompletioWebSearch(ITestOutputHelper output) : BaseTest(output)
@@ -24,7 +23,7 @@ public async Task UsingChatCompletionWithWebSearchEnabled()
2423
Assert.NotNull(TestConfiguration.OpenAI.ApiKey);
2524

2625
// Ensure you use a supported model
27-
var modelId = "gpt-4o-mini-search-preview";
26+
var modelId = "gpt-5-search-api";
2827
var settings = new OpenAIPromptExecutionSettings
2928
{
3029
WebSearchOptions = new ChatWebSearchOptions()

‎dotnet/samples/GettingStartedWithAgents/Orchestration/Step05_Magentic.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ namespace GettingStarted.Orchestration;
2121
public class Step05_Magentic(ITestOutputHelper output) : BaseOrchestrationTest(output)
2222
{
2323
private const string ManagerModel = "o3-mini";
24-
private const string ResearcherModel = "gpt-4o-search-preview";
24+
private const string ResearcherModel = "gpt-5-search-api";
2525

2626
/// <summary>
27-
/// Require OpenAI services in order to use "gpt-4o-search-preview" model
27+
/// Require OpenAI services in order to use "gpt-5-search-api" model
2828
/// </summary>
2929
protected override bool ForceOpenAI => true;
3030

‎dotnet/src/Connectors/Connectors.OpenAI/Settings/OpenAIPromptExecutionSettings.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,7 @@ public bool? Store
374374
/// <para>
375375
/// Currently, you need to use one of these models to use web search in Chat Completions:
376376
/// <list type="bullet">
377-
/// <item>gpt-4o-search-preview</item>
378-
/// <item>gpt-4o-mini-search-preview</item>
377+
/// <item>gpt-5-search-api</item>
379378
/// </list>
380379
/// </para>
381380
/// </remarks>

‎dotnet/src/IntegrationTests/Connectors/OpenAI/OpenAIChatCompletion_NonStreamingTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public async Task TextGenerationShouldReturnMetadataAsync()
147147
public async Task ChatCompletionWithWebSearchAsync()
148148
{
149149
// Arrange
150-
var kernel = this.CreateAndInitializeKernel(modelIdOverride: "gpt-4o-search-preview");
150+
var kernel = this.CreateAndInitializeKernel(modelIdOverride: "gpt-5-search-api");
151151
var chatService = kernel.Services.GetRequiredService<IChatCompletionService>();
152152
var settings = new OpenAIPromptExecutionSettings
153153
{

0 commit comments

Comments
 (0)