File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments