Skip to content

feat(openai): add file search tool support #6802

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 7 commits into from
Jun 20, 2025
Merged

feat(openai): add file search tool support #6802

merged 7 commits into from
Jun 20, 2025

Conversation

dancer
Copy link
Collaborator

@dancer dancer commented Jun 19, 2025

background

users want to ask questions about their documents without building complex search systems. OpenAI's file search handles this on their servers.

summary

  • add openai file search tool with document sources
  • implement streaming file citations with real-time source extraction

verification

  • all tests pass including file search streaming test
  • document sources created with proper metadata and MIME types
  • examples demonstrate file search integration

tasks

  • fileSearch tool added to openai-tools.ts
  • file citation processing in language model
  • document source creation with metadata
  • streaming support with source extraction
  • test coverage and examples

@lgrammel
Copy link
Collaborator

Looks good. Pls updated the openai provider docs page.

@dancer dancer merged commit 23f4aad into v5 Jun 20, 2025
8 checks passed
@dancer dancer deleted the js/openai-file-search branch June 20, 2025 16:27
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