forked from cline/cline
-
Couldn't load subscription status.
- Fork 2.4k
Closed
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.enhancementNew feature or requestNew feature or request
Description
Type
Enhancement
Problem
Users with a Z AI GLM Coding Plan want to use their plan in Roo Code without spending API credits.
Context
- Affects users who have an active GLM Coding Plan with Z AI.
- Provider guidance indicates coding-specific endpoints:
- International (Z AI): https://api.z.ai/api/coding/paas/v4
- China (bigmodel): https://open.bigmodel.cn/api/coding/paas/v4
- Standard endpoints for normal API credits:
- International: https://api.z.ai/api/paas/v4
- China: https://open.bigmodel.cn/api/paas/v4
- When the plan's window limit is reached, access pauses until the next refresh cycle. Continuing via credits currently requires manually reverting to the standard endpoints.
- We cannot reliably detect plan limits from the client.
Desired behavior
- Add a toggle in Settings > Providers > Z AI: Use GLM Coding Plan.
- Default: Off.
- When On: route Z AI requests through the coding-plan endpoints based on the selected region:
- International: https://api.z.ai/api/coding/paas/v4
- China: https://open.bigmodel.cn/api/coding/paas/v4
- When Off: route through the standard endpoints:
- International: https://api.z.ai/api/paas/v4
- China: https://open.bigmodel.cn/api/paas/v4
- If requests appear paused due to plan limits, show a brief notice explaining the situation and that the user can turn the toggle Off to continue with API credits.
Constraints/Preferences
- Keep the control lightweight and unobtrusive.
- Remember the user's choice for the Z AI provider.
- Include brief helper text under the toggle explaining behavior and manual switchback.
- No automatic fallback at limit for now.
Metadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done