mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
refactor: remove dead code for deprecated Cerebras models
This commit is contained in:
parent
e92b41b75b
commit
48882585bf
1 changed files with 3 additions and 11 deletions
|
|
@ -98,19 +98,11 @@ export class CerebrasHandler extends BaseProvider implements SingleCompletionHan
|
|||
}
|
||||
|
||||
getModel(): { id: CerebrasModelId; info: (typeof cerebrasModels)[CerebrasModelId] } {
|
||||
const originalModelId = (this.options.apiModelId as CerebrasModelId) || this.defaultProviderModelId
|
||||
|
||||
// Route both qwen coder models to the same actual model ID for API calls
|
||||
// This allows them to have different rate limits/descriptions in the UI
|
||||
// while using the same underlying model
|
||||
let apiModelId = originalModelId
|
||||
if (originalModelId === "qwen-3-coder-480b-free") {
|
||||
apiModelId = "qwen-3-coder-480b"
|
||||
}
|
||||
const modelId = (this.options.apiModelId as CerebrasModelId) || this.defaultProviderModelId
|
||||
|
||||
return {
|
||||
id: apiModelId,
|
||||
info: this.providerModels[originalModelId], // Use original model info for rate limits/descriptions
|
||||
id: modelId,
|
||||
info: this.providerModels[modelId],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue