-
Notifications
You must be signed in to change notification settings - Fork 178
feat(protocols): implement T3 web_search non-preview tool + WebSearchCall.results #1304
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,6 +62,7 @@ pub(crate) fn convert_harmony_logprobs(proto_logprobs: &ProtoOutputLogProbs) -> | |
| /// Built-in tools that are added to the system message | ||
| const BUILTIN_TOOLS: &[&str] = &[ | ||
| "web_search_preview", | ||
| "web_search", | ||
| "code_interpreter", | ||
| "container", | ||
| "file_search", | ||
|
|
@@ -107,7 +108,9 @@ impl ToolLike for ResponseTool { | |
| fn is_builtin(&self) -> bool { | ||
| matches!( | ||
| self, | ||
| ResponseTool::WebSearchPreview(_) | ResponseTool::CodeInterpreter(_) | ||
| ResponseTool::WebSearchPreview(_) | ||
| | ResponseTool::WebSearch(_) | ||
| | ResponseTool::CodeInterpreter(_) | ||
| ) | ||
| } | ||
|
|
||
|
|
@@ -429,6 +432,7 @@ impl HarmonyBuilder { | |
| .map(|tool| match tool { | ||
| ResponseTool::Function(_) => "function", | ||
| ResponseTool::WebSearchPreview(_) => "web_search_preview", | ||
| ResponseTool::WebSearch(_) => "web_search", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Nit: This means Similarly, |
||
| ResponseTool::CodeInterpreter(_) => "code_interpreter", | ||
| ResponseTool::Mcp(_) => "mcp", | ||
| ResponseTool::FileSearch(_) => "file_search", | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.