-
-
Save 4ebuRushka/06975027c42db32692fd0c2465dcca13 to your computer and use it in GitHub Desktop.
OpenCode: websearch tool absent for custom/local providers - sanitized request captures (before/after OPENCODE_ENABLE_EXA)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_comment": "Sanitized MITM captures of POST /v1/chat/completions payloads sent by OpenCode Desktop 1.18.21 to a local Ollama instance. Only structural fields are preserved; message contents removed.", | |
| "captures": [ | |
| { | |
| "phase": "before workaround (no env flags set)", | |
| "model": "qwen3.6:35b-a3b-q4_K_M", | |
| "provider": "ollama_local (@ai-sdk/openai-compatible)", | |
| "max_tokens": 32000, | |
| "stream": true, | |
| "tool_choice": "auto", | |
| "tool_count": 11, | |
| "tools": ["bash", "edit", "glob", "grep", "question", "read", "skill", "task", "todowrite", "webfetch", "write"], | |
| "websearch_present": false | |
| }, | |
| { | |
| "phase": "before workaround (no env flags set)", | |
| "model": "nemotron-3.5-lightning", | |
| "provider": "ollama_local (@ai-sdk/openai-compatible)", | |
| "max_tokens": 32000, | |
| "stream": true, | |
| "tool_choice": "auto", | |
| "tool_count": 11, | |
| "tools": ["bash", "edit", "glob", "grep", "question", "read", "skill", "task", "todowrite", "webfetch", "write"], | |
| "websearch_present": false | |
| }, | |
| { | |
| "phase": "after OPENCODE_ENABLE_EXA=true + OPENCODE_WEBSEARCH_PROVIDER=exa (full app restart)", | |
| "model": "qwen3.6:35b-a3b-q4_K_M", | |
| "provider": "ollama_local (@ai-sdk/openai-compatible)", | |
| "max_tokens": 32000, | |
| "stream": true, | |
| "tool_choice": "auto", | |
| "tool_count": 12, | |
| "tools": ["bash", "edit", "glob", "grep", "question", "read", "skill", "task", "todowrite", "webfetch", "websearch", "write"], | |
| "websearch_present": true, | |
| "observed_behavior": { | |
| "model_called_websearch": true, | |
| "websearch_executions_in_session": 3, | |
| "exa_api_key_required": false, | |
| "note": "assistant turn contained valid tool_call for websearch followed by three tool-result messages" | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment