feat(deepseek): use native Anthropic Messages transport

- Point DeepSeek at api.deepseek.com/anthropic with x-api-key headers
- Native request builder, DeepSeek-specific thinking/block sanitization
- Drop deepseek from OpenAI-chat server-tool preflight; update tests and docs
- Default smoke model deepseek-v4-pro; re-export dump_raw_messages_request
This commit is contained in:
Alishahryar1 2026-04-26 12:03:21 -07:00
parent 2d2bf3de70
commit 6297b48f81
16 changed files with 558 additions and 327 deletions

View file

@ -79,7 +79,7 @@ def openai_chat_upstream_server_tool_error(
)
if not forced and has_listed_anthropic_server_tools(request):
return (
"OpenAI Chat upstreams (NVIDIA NIM, DeepSeek) cannot use listed Anthropic server tools "
"OpenAI Chat upstreams (NVIDIA NIM) cannot use listed Anthropic server tools "
"(web_search / web_fetch) without the local web server tool handler. Use a native "
"Anthropic transport, set ENABLE_WEB_SERVER_TOOLS=true and force the tool with "
"tool_choice, or remove these tools from the request."