Skip to content
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

Add support for File Search Result Content #328

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

joseharriaga
Copy link
Owner

@joseharriaga joseharriaga commented Nov 15, 2024

Features added

  • Added a Content property to RunStepFileSearchResult (step_details.tool_calls.file_search.results.content in the REST API).
    • When using an Assistant with the File Search tool, you can use this property to retrieve the contents of the File Search results that were used by the model.
  • Added FileSearchRankingOptions and FileSearchResults properties to RunStepDetailsUpdate.

Breaking Changes in Preview APIs

  • Renamed RunStepType to RunStepKind.
  • Changed RunStepKind from an "extensible enum" to a regular enum.
  • Renamed the ToolCallId property of RunStepToolCall to Id.
  • Renamed the ToolKind property of RunStepToolCall to Kind.
  • Replaced the FileSearchRanker and FileSearchScoreThreshold properties of RunStepToolCall with a new FileSearchRankingOptions property that contains both values to make it clearer how they are related.

@joseharriaga joseharriaga merged commit 0ab6c22 into main Nov 19, 2024
4 checks passed
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