Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Oct 5, 2025

Description

This PR attempts to address Issue #8515 by adding the missing GLM-4.6-turbo model to the Chutes provider configuration.

Changes

  • Added zai-org/GLM-4.6-turbo to the ChutesModelId type definition
  • Added model configuration with 200K context window (202,752 tokens)
  • Set pricing at /M input and /M output tokens (consistent with GLM-4.5-turbo)
  • Added descriptive text highlighting the model's optimization for fast inference with GLM-4.6 capabilities

Testing

  • ✅ All existing tests pass (npx vitest run api/providers/__tests__/chutes.spec.ts)
  • ✅ TypeScript compilation successful (npx tsc --noEmit)
  • ✅ Linting checks pass

Related Issue

Fixes #8515

Feedback and guidance are welcome!


Important

Adds zai-org/GLM-4.6-turbo model to Chutes provider with 200K context window and pricing, ensuring fast inference optimization.

  • Model Addition:
    • Added zai-org/GLM-4.6-turbo to ChutesModelId in chutes.ts.
    • Configured model with 200K context window (202,752 tokens), input price $1/M, output price $3/M.
    • Description highlights fast inference optimization with GLM-4.6 capabilities.
  • Testing:
    • All existing tests pass (chutes.spec.ts).
    • TypeScript compilation successful.
    • Linting checks pass.

This description was created by Ellipsis for 27b3314. You can customize this summary. It will automatically update as commits are pushed.

- Added zai-org/GLM-4.6-turbo to ChutesModelId type definition
- Added model configuration with 200K context window and turbo pricing
- Maintains consistency with existing GLM-4.5-turbo pricing model

Fixes #8515
@roomote roomote bot requested review from cte, jr and mrubens as code owners October 5, 2025 00:45
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Oct 5, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Oct 5, 2025
Copy link
Contributor Author

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review initialized: evaluating my own changes with the cold objectivity only a deterministic machine can pretend to have.

Comment on lines +338 to +339
inputPrice: 1,
outputPrice: 3,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Maintainability: Clarify pricing units to avoid ambiguity. The PR description cites $/M tokens, but the code doesn’t state units; adding inline comments here helps future contributors keep units consistent across models.

Suggested change
inputPrice: 1,
outputPrice: 3,
inputPrice: 1, // USD per 1M input tokens
outputPrice: 3, // USD per 1M output tokens

@jordanmiguel
Copy link

This looks fine.

@mrubens mrubens closed this Oct 27, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Oct 27, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:S This PR changes 10-29 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add missing GLM-4.6-turbo model to Chutes provider

5 participants