[BUG]Chatbox not working with z.ai
Bug Description Chatbox not working with z.ai
Steps to Reproduce Please provide the steps to reproduce the bug:
- Add z.ai as an OpenAI API compatable provider.
- Enter the custom API host and path:
https://api.z.ai/api/coding/paas/v4 - Add
glm-4.7model (without vision) capabilities. - Run "check"
The API URI is exactly the same as the setup provides from docs.z.ai, so I can't imagine what the issue is. Running "fetch" on models returns "Failed to fetch models."
Expected Results Successful connection to model.
Actual Results
{"error":{"code":"500","message":"404 NOT_FOUND"}}
Additional Context Please provide any additional context about the issue, such as interactions with other software or applications.
๐ CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
- [ ] Create Plan
๐งช Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
๐ฌ Have feedback or questions? Drop into our discord!
Set the API Host to https://api.z.ai/api/paas/v4/ and the API Path to chat/completions
Interesting. I played with it a bit and seemed to get it working to the point where it pulls the models from the API host:
However, when you actually go to use the model, it returns absolutely nothing. Not even errors.
Try switching prompts or models. This is likely an API-side issue.
Randomly started working today, without changing any settings. ๐คท๐ปโโ๏ธ
I have the same incident using https://api.z.ai/api/coding/paas/v4/chat/completions, I attach images. If I use it in compatibility mode, it shows ok, but it does not make a call, in case of not using the compatibility mode it says that the token is expired, which is not true since I tried it in curl.