Web search
Add web_search: true to a normal completion. The proxy searches through its configured SearXNG instance, attaches results as tool messages, then asks the model to answer from those results.
curl https://api.proxy.gonka.gg/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-your-api-key-here" \
-d '{
"model": "deepseek-ai/DeepSeek-V4-Flash-0731",
"web_search": true,
"messages": [
{"role": "user", "content": "What changed in the latest Gonka gateway release?"}
]
}'SDK note
OpenAI SDKs may drop unknown keys. Put the flag in extra_body:
client.chat.completions.create(
model="deepseek-ai/DeepSeek-V4-Flash-0731",
messages=[{"role": "user", "content": "Who won yesterday?"}],
extra_body={"web_search": True},
)Pseudo-tool
Clients that can only send a tools array may pass {"type":"web_search"}. The proxy consumes it and does not forward that tool upstream.
Cost
Search itself is not a separate line item. You still pay for the extra prompt tokens of the attached results.
Chat
The browser Chat can enable search from the composer. Same backend path.