Skip to content

feat(openai): add file_search tool support to Responses API #7207

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

Merged
merged 4 commits into from
Jul 10, 2025
Merged

Conversation

dancer
Copy link
Collaborator

@dancer dancer commented Jul 10, 2025

background

OpenAI Responses API was missing support for the file_search tool that was already available in the regular OpenAI API, causing file search tools to be treated as unsupported and fall through to error handling.

summary

  • add file_search tool support to OpenAI Responses API
  • add test for file_search functionality
  • updated docs

verification

  • all tests pass including new file_search-specific tests
  • file_search tools are properly processed instead of being marked unsupported
  • tool choice selection works with file_search tools

tasks

  • add file_search case to openai-responses-prepare-tools.ts
  • add file_search tool type to openai-responses-api-types.ts
  • add tool choice support for file_search

@dancer dancer changed the title Add file_search tool support to OpenAI Responses API feat(openai): add file_search tool support to OpenAI Responses API Jul 10, 2025
@dancer dancer changed the title feat(openai): add file_search tool support to OpenAI Responses API feat(openai): add file_search tool support to Responses API Jul 10, 2025
@lgrammel
Copy link
Collaborator

did you manually test this e2e?

@dancer
Copy link
Collaborator Author

dancer commented Jul 10, 2025

did you manually test this e2e?

yeah worked perfectly

@dancer dancer merged commit 209256d into main Jul 10, 2025
9 checks passed
@dancer dancer deleted the js/openai branch July 10, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy