-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Description
Quick Summary
When using PicoClaw with GLM Coding Plan subscription via QQ channel, conversation works normally for the first few rounds. However, after several rounds of conversation, the API returns a 500 error with message "网络错误" (network error).
The same GLM Coding Plan API works correctly with OpenCode, suggesting this is not an issue with the subscription itself.
Environment & Tools
- PicoClaw Version: v0.1.2
- Go Version: go1.25.7
- AI Model & Provider: GLM Coding Plan via https://api.z.ai/api/coding/paas/v4
- Operating System: Ubuntu24.04(amd64)/kylinos v10(arm64)
- Channels: QQ
📸 Steps to Reproduce
- Configure PicoClaw with GLM Coding Plan API key and endpoint
- Connect via QQ channel
- Start a conversation - first few rounds work normally
- Continue conversation for several rounds (usually 5-10 rounds)
- Observe 500 error in logs
❌ Actual Behavior
Error processing message: LLM call failed after retries: API request failed:
Status: 500
Body: {"error":{"code":"1234","message":"网络错误,错误id:202602261029392bc0093d0e944297,请联系客服。"}}
✅ Expected Behavior
PicoClaw should continue working normally with GLM Coding Plan API throughout the conversation, as OpenCode does with the same API credentials.
💬 Additional Context
Zhipu AI's Usage Policy:
According to Zhipu AI's policy, GLM Coding Plan subscription is "only available for use in Coding tools". The system may restrict access if it detects usage in non-Coding scenarios.
Evidence of Misclassification:
- GLM Coding Plan support list includes openclaw (similar CLI-based agent tool)
- OpenCode works fine with the same API
- PicoClaw (also a CLI-based coding assistant tool) is being blocked
Possible Root Cause:
Zhipu AI may have a whitelist mechanism that checks the tool request source (User-Agent or other identifiers) to determine if it's a legitimate "Coding tool". PicoClaw might be failing this check and being misclassified as non-Coding usage, triggering the 500 error.
Request to Official:
Please confirm if PicoClaw needs specific User-Agent headers or other identifiers to be recognized as a valid Coding tool by Zhipu AI, similar to how OpenCode is recognized. If needed, please add official support for GLM Coding Plan integration to ensure PicoClaw users can use their subscription without issues.