mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: add explicit ModelInfo type to resolve TypeScript error
This commit is contained in:
parent
0141be1a68
commit
22148e4bc9
1 changed files with 2 additions and 1 deletions
|
|
@ -287,7 +287,8 @@ export class QwenCodeHandler extends BaseProvider implements SingleCompletionHan
|
|||
|
||||
override getModel(): { id: string; info: ModelInfo } {
|
||||
const id = this.options.apiModelId ?? qwenCodeDefaultModelId
|
||||
let info = qwenCodeModels[id as keyof typeof qwenCodeModels] || qwenCodeModels[qwenCodeDefaultModelId]
|
||||
let info: ModelInfo =
|
||||
qwenCodeModels[id as keyof typeof qwenCodeModels] || qwenCodeModels[qwenCodeDefaultModelId]
|
||||
|
||||
// Apply custom context window limit if configured
|
||||
if (this.options.qwenCodeMaxContextWindow && this.options.qwenCodeMaxContextWindow > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue