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

+3 -7
View File
@@ -49,10 +49,9 @@ impl ToolSearchInfo {
}
LoadableToolSpec::Namespace(namespace)
}
ToolSpec::ToolSearch { .. }
| ToolSpec::ImageGeneration { .. }
| ToolSpec::WebSearch { .. }
| ToolSpec::Freeform(_) => return None,
ToolSpec::ToolSearch { .. } | ToolSpec::WebSearch { .. } | ToolSpec::Freeform(_) => {
return None;
}
};
Some(Self {
@@ -81,9 +80,6 @@ fn default_tool_search_text(spec: &ToolSpec) -> String {
ToolSpec::ToolSearch { description, .. } => {
push_search_part(&mut parts, description.clone());
}
ToolSpec::ImageGeneration { .. } => {
push_search_part(&mut parts, "image generation".to_string());
}
ToolSpec::WebSearch { .. } => {
push_search_part(&mut parts, "web search".to_string());
}