feat: add zai-org/GLM-4.5-turbo model to Chutes provider#8157
Merged
Conversation
- Added GLM-4.5-turbo to ChutesModelId type definition - Configured model with 128K context window and $1/$3 pricing - Added comprehensive test coverage for the new model - Verified all tests pass and TypeScript compilation succeeds Fixes #8155
| supportsPromptCache: false, | ||
| inputPrice: 1, | ||
| outputPrice: 3, | ||
| description: "GLM-4.5-turbo model with 128K token context window, optimized for fast inference.", |
Contributor
Author
There was a problem hiding this comment.
The implementation correctly adds the GLM-4.5-turbo model with accurate metadata from the Chutes API. The pricing ( input, output per 1M tokens) and context window (131,072 tokens) match the specification provided by @mugnimaestra.
| supportsPromptCache: false, | ||
| inputPrice: 1, | ||
| outputPrice: 3, | ||
| description: "GLM-4.5-turbo model with 128K token context window, optimized for fast inference.", |
Contributor
Author
There was a problem hiding this comment.
Good test coverage! The test properly verifies all the model configuration parameters including the default temperature (0.5) for non-DeepSeek models.
2 tasks
mrubens
approved these changes
Sep 23, 2025
Merged
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for the zai-org/GLM-4.5-turbo model to the Chutes API provider.
Changes
zai-org/GLM-4.5-turboto theChutesModelIdtype definitionTesting
Related Issues
Fixes #8155
Context
This implementation uses the exact model metadata provided by @mugnimaestra from the Chutes API endpoint (https://llm.chutes.ai/v1/models).
Feedback and guidance are welcome!
Important
Add
zai-org/GLM-4.5-turbomodel to Chutes provider with specific configuration and test coverage.zai-org/GLM-4.5-turbotoChutesModelIdinchutes.ts.chutes.spec.tsto verifyzai-org/GLM-4.5-turbomodel configuration.maxTokens,contextWindow,inputPrice,outputPrice, anddescription.This description was created by
for 5a068d4. You can customize this summary. It will automatically update as commits are pushed.