-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Copy link
Labels
area:aiImprovement related to Agent Panel, Edit Prediction, Copilot, or other AI featuresImprovement related to Agent Panel, Edit Prediction, Copilot, or other AI features
Description
Summary
Zhipu AI returns "text cannot be empty" when multiple context files are included consecutively with no separating characters.
Seems related: PR 37626
Description
Steps to trigger the problem:
- Configure Zhipu's API in Zed as OpenAI-compatible Provider.
- Add two or more context files consecutively into Zed Agent Panel.
- Send.
Expected Behavior:
Get answer from AI.
Actual Behavior:
Error is displayed: API request to https://api.z.ai/api/coding/paas/v4 failed: messages[1].content[1].text:text cannot be empty.
Workaround:
Adding any character between included files fixes the issue.
Model Provider Details
- Provider: Zhipu AI
- Model Name: GLM-4.6
- Mode: Agent Panel
- Other Details (MCPs, other settings, etc):
"openai_compatible": {
"z.ai GLM Coding Plan": {
"api_url": "https://api.z.ai/api/coding/paas/v4",
"available_models": [
{
"name": "glm-4.6",
"max_tokens": 200000,
"max_output_tokens": 32000,
"max_completion_tokens": 200000,
"capabilities": {
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": false
}
}
]
}
}
Zed Version and System Specs
Zed: v0.209.0 (Zed Nightly 95780e5)
OS: Windows 10.0.26100
Memory: 55.6 GiB
Architecture: x86_64
GPU: AMD Radeon(TM) 890M Graphics || AMD Corporation || 25.9.1 (25.10.25.10-250825a-418637C-AMD-Software-Adrenalin-Edition)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:aiImprovement related to Agent Panel, Edit Prediction, Copilot, or other AI featuresImprovement related to Agent Panel, Edit Prediction, Copilot, or other AI features