Parent
Part of #35 (responses_to_chat_completions)
Context
The Responses API supports hosted tool types that have no Chat Completions equivalent:
code_interpreter — sandboxed Python execution
computer_use / computer_use_preview — screen automation
image_generation — DALL-E image generation
tool_search — tool discovery (gpt-5.4+)
When translating a Responses API request to Chat Completions format, the filter needs a strategy for these tools.
Decision needed
For each hosted-only tool type, choose one of:
- Synthesize — create a function tool equivalent (like web_search/file_search), proxy intercepts and dispatches
- Strip — remove from the tools array, log a warning
- Reject — return an error if the request contains unsupported tools for the target backend
The strategy may differ per tool type (e.g., strip image_generation but reject computer_use).
Reference
Parent
Part of #35 (responses_to_chat_completions)
Context
The Responses API supports hosted tool types that have no Chat Completions equivalent:
code_interpreter— sandboxed Python executioncomputer_use/computer_use_preview— screen automationimage_generation— DALL-E image generationtool_search— tool discovery (gpt-5.4+)When translating a Responses API request to Chat Completions format, the filter needs a strategy for these tools.
Decision needed
For each hosted-only tool type, choose one of:
The strategy may differ per tool type (e.g., strip image_generation but reject computer_use).
Reference
tool_parse(tool_parse: parse and register function/built-in tools #42) promoteshas_code_interpreter,has_computer_use,has_image_generation,has_tool_searchmetadata for routing decisions