You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have configured DeepSeek R1 via kluster.ai . They have OpenAI compatibility and everything is working fine, however there is an error/warning shown at the bottom of the assistant panel while interacting with it. Also, this error doesn't occur when using the official DeepSeek API with direct configuration (via assistant: open configuration), as documented in the Zed docs.
Bug
Error interacting with language model
data did not match any variant of untagged enum
ResponseStreamResult
It may be that their API compatibility isn't exactly the same as OpenAI's?
It'd be interesting to see the raw response body. It's hard for me to debug as I don't have a kluster.ai account, but if you're able to compile a version of Zed, you could add a dbg!here to get the body.
Now, I tried to add the debugging line you suggested, but I'm having trouble seeing the actual response body content. I added: dbg!(response) before let reader = BufReader::new(response.into_body());
However, I'm seeing that the response is an AsyncReader type, and this way is giving me compiling errors. Could you show me how to debug this response content/body in this case? I've been trying to understand whats going on and different approaches (using AI only because I have 0 knowledge of Rust unfortunately). Btw, I can see the status (200) and headers, and as I said everything is working fine (even in complied version) but need your help now on how to access this streaming body.
PS: I also tried 'peeking' at this first chunk - to be honest I have no idea what I am doing, but trying and apparently Claude sucks at Rust 🙃
Check for existing issues
Describe the bug / provide steps to reproduce it
I have configured DeepSeek R1 via kluster.ai . They have OpenAI compatibility and everything is working fine, however there is an error/warning shown at the bottom of the assistant panel while interacting with it. Also, this error doesn't occur when using the official DeepSeek API with direct configuration (via assistant: open configuration), as documented in the Zed docs.
Bug
Reference screenshot
Configuration at Zed
settings.json
fileZed Version and System Specs
Zed: v0.171.5 (Zed)
OS: macOS 15.2.0
Memory: 18 GiB
Architecture: aarch64
The text was updated successfully, but these errors were encountered: