Skip to content

when using Response API Method not found: 'OpenAI.Responses.WebSearchTool #7060

@andrew-vdb

Description

@andrew-vdb

Description

Error: Method not found: 'OpenAI.Responses.WebSearchTool OpenAI.Responses.ResponseTool.CreateWebSearchTool(OpenAI.Responses.WebSearchToolLocation, System.Nullable`1<OpenAI.Responses.WebSearchToolContextSize>)'.
 <PackageReference Include="OpenAI" Version="2.7.0" />
 <PackageReference Include="Microsoft.Extensions.AI" Version="10.0.0" />
 <PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="10.0.0-preview.1.25560.10" />
 <PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.0.0" />
 <PackageReference Include="ModelContextProtocol.Core" Version="0.4.0-preview.3" />

Reproduction Steps

Use OpenAIResponseClient instead of ChatClient

Expected behavior

should just work

Actual behavior

Method not found

not sure issue in OpenAI or this library, I'm aware OpenAI making ton of breaking change lately

Regression?

No response

Known Workarounds

Use ChatClient

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-aiMicrosoft.Extensions.AI librariesbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions