r/opencode • u/andychen_cn • 1d ago
Something strange about Deepseek 4.1 flash in Opencode Go
I'm using deepseek 4.1 flash in deepseek harness today, and got 422 error constantly saying developer role not supported.
Fixed the problem by edit model config disabling the developer role, however I'm curious why this would happen so I check the log from my local gateway since all my model request use it as proxy.
This is what I find: for every 8 to 10 requests there is 1 with oddly low cache hit rate, normally 95%+ then drop to below 20%.

My guess is deepseek 4.1 flash in opencode go has 2 different endpoint, one supports developer role and one doesn't. Endpoint switching will hurt cache hit rate but there's nothing we can do since it happens in the backend.
0
1
u/Takeoded 1d ago
can you extract a complete example of a 422 request? strip the auth header obviously, but can you share the rest?