feat: Enhance Chutes AI provider with comprehensive API support and model reorganization #2307
+629
−85
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.
Context
This PR significantly enhances the Chutes AI provider integration with three major improvements:
Implementation
1. Complete Chutes API Parameter Support (26 new parameters):
provider-settings.ts
seed
,top_p
,frequency_penalty
,presence_penalty
,stop
,min_p
,best_of
,logprobs
,ignore_eos
,logit_bias
,min_tokens
,top_logprobs
,length_penalty
,stop_token_ids
,prompt_logprobs
,response_format
,use_beam_search
,repetition_penalty
,skip_special_tokens
,include_stop_str_in_output
,spaces_between_special_tokens
2. Model Reorganization & Expansion:
Logical Grouping: Organized 65+ models into architectural families:
Chronological Ordering: Within each group, models ordered newest to oldest based on release timelines
Enhanced Documentation: Clear section comments with ordering rationale
3. Embedding Model Support:
chutes-baai-bge-large-en-v1-5
embedding model with proper configurationTechnical Details:
Files Modified:
packages/types/src/provider-settings.ts
- Schema validation (+26 parameters)src/api/providers/chutes.ts
- API parameter implementationpackages/types/src/providers/chutes.ts
- Model reorganization (615+ changes)src/shared/embeddingModels.ts
- Embedding model additionType Safety: All changes maintain full TypeScript compatibility
Backward Compatibility: All existing functionality preserved
Screenshots
How to Test
API Parameter Testing:
Model Availability:
Embedding Model:
chutes-baai-bge-large-en-v1-5
embedding modelType Safety:
npm run type-check
to confirm no compilation errorsGet in Touch
Available in Kilo Code Discord for questions user id: 176349800646705154