mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Use the image generation extension by default (#31596)
This commit is contained in:
1 parent
2342b2c2a6
commit
a7c72aee8b
33 files changed
+158
-861
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user