Skip to content

Commit 4888258

Browse files
committed
refactor: remove dead code for deprecated Cerebras models
1 parent e92b41b commit 4888258

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/api/providers/cerebras.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,11 @@ export class CerebrasHandler extends BaseProvider implements SingleCompletionHan
9898
}
9999

100100
getModel(): { id: CerebrasModelId; info: (typeof cerebrasModels)[CerebrasModelId] } {
101-
const originalModelId = (this.options.apiModelId as CerebrasModelId) || this.defaultProviderModelId
102-
103-
// Route both qwen coder models to the same actual model ID for API calls
104-
// This allows them to have different rate limits/descriptions in the UI
105-
// while using the same underlying model
106-
let apiModelId = originalModelId
107-
if (originalModelId === "qwen-3-coder-480b-free") {
108-
apiModelId = "qwen-3-coder-480b"
109-
}
101+
const modelId = (this.options.apiModelId as CerebrasModelId) || this.defaultProviderModelId
110102

111103
return {
112-
id: apiModelId,
113-
info: this.providerModels[originalModelId], // Use original model info for rate limits/descriptions
104+
id: modelId,
105+
info: this.providerModels[modelId],
114106
}
115107
}
116108

0 commit comments

Comments
 (0)