-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: 2026.6.5 routes DeepSeek (custom OpenAI-compatible provider) to the OpenAI Responses API → 401, now affecting non-reasoning deepseek-v4-pro #92148
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.ClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.Security boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Type
Fields
Priority
None yet
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
OpenClaw 2026.6.5 misroutes deepseek-v4-pro to the OpenAI Responses API, causing HTTP 401 (worked on 2026.5.27).
Steps to reproduce
DeepSeek as a custom OpenAI-compatible provider: API-key auth, empty baseUrl
(DeepSeek default), model
deepseek-v4-prowithreasoning: false, andagents.defaults.thinkingDefault: "off". Default model = deepseek/deepseek-v4-pro.openclaw models status --probe(or send any message to the agent in Telegram).[openai-transport] [responses] error provider=deepseek api=openai-responses model=deepseek-v4-pro status=401 code=invalid_api_key... "find your API key athttps://platform.openai.com/account/api-keys"
Expected behavior
On 2026.5.27 (verified directly by rolling back), the same config and the same
openclaw models status --probereturnokfor deepseek-v4-pro, and the agentreplies normally in Telegram. DeepSeek requests should go to api.deepseek.com via
chat-completions, not the OpenAI Responses API. The key is valid: a direct
GET https://api.deepseek.com/user/balancewith the same key returns 200.DActual behavior
deepseek-v4-pro requests return HTTP 401.
openclaw models status --probereportsdeepseek-v4-pro as
auth/ "Authentication failed (provider returned HTTP 401)".The gateway log shows the request was sent to the OpenAI Responses API using the
DeepSeek key, which OpenAI rejects:
[openai-transport] [responses] error provider=deepseek api=openai-responses
model=deepseek-v4-pro status=401 code=invalid_api_key
message=401 Incorrect API key provided: sk-... ; find your API key at
https://platform.openai.com/account/api-keys
A direct GET https://api.deepseek.com/user/balance with the same key returns 200,
confirming the key is valid.
OpenClaw version
2026.6.5 (5181e4f)
Operating system
Ubuntu (Linux 6.8.0-124-generic, x86_64), Node 22.22.3
Install method
npm global: sudo npm install -g openclaw
Model
deepseek/deepseek-v4-pro
Provider / routing chain
openclaw -> deepseek (direct, api.deepseek.com, OpenAI-compatible chat-completions)
Additional provider/model setup details
all with reasoning:false; baseUrl empty (uses DeepSeek default https://api.deepseek.com).
openclaw models statusshows deepseek auth as present.it did NOT stop the routing to the Responses API.
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response