Use the image generation extension by default (#31596)

This commit is contained in:
Won Park authored and GitHub committed 2026-07-09 12:25:19 +09:00
1 parent 2342b2c2a6
commit a7c72aee8b
33 files changed
+158 -861

No files matched your search

-6
View File
@@ -11,12 +11,6 @@ pub struct WebSearchToolOptions<'a> {
pub web_search_tool_type: WebSearchToolType,
}
pub fn create_image_generation_tool(output_format: &str) -> ToolSpec {
ToolSpec::ImageGeneration {
output_format: output_format.to_string(),
}
}
pub fn create_web_search_tool(options: WebSearchToolOptions<'_>) -> Option<ToolSpec> {
let (external_web_access, indexed_web_access) = match options.web_search_mode {
Some(WebSearchMode::Cached) => (false, None),