chatbox icon indicating copy to clipboard operation
chatbox copied to clipboard

[BUG]Chatbox not working with z.ai

Open zQueal opened this issue 11 months ago โ€ข 6 comments

Bug Description Chatbox not working with z.ai

Steps to Reproduce Please provide the steps to reproduce the bug:

  1. Add z.ai as an OpenAI API compatable provider.
  2. Enter the custom API host and path: https://api.z.ai/api/coding/paas/v4
  3. Add glm-4.7 model (without vision) capabilities.
  4. 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.

zQueal avatar Dec 28 '25 17:12 zQueal

๐Ÿ“ CodeRabbit Plan Mode

Generate an implementation plan and prompts that you can use with your favorite coding agent.

  • [ ] Create Plan
Examples

๐Ÿงช 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!

coderabbitai[bot] avatar Dec 28 '25 17:12 coderabbitai[bot]

Set the API Host to https://api.z.ai/api/paas/v4/ and the API Path to chat/completions

Andy115951 avatar Dec 29 '25 03:12 Andy115951

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:

Image

However, when you actually go to use the model, it returns absolutely nothing. Not even errors.

Image

zQueal avatar Dec 29 '25 23:12 zQueal

Try switching prompts or models. This is likely an API-side issue.

Andy115951 avatar Dec 30 '25 09:12 Andy115951

Randomly started working today, without changing any settings. ๐Ÿคท๐Ÿปโ€โ™‚๏ธ

zQueal avatar Dec 31 '25 01:12 zQueal

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.

Image Image Image

hbuddenberg avatar Mar 14 '26 02:03 hbuddenberg