Skip to content

Commit 22148e4

Browse files
committed
fix: add explicit ModelInfo type to resolve TypeScript error
1 parent 0141be1 commit 22148e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/providers/qwen-code.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ export class QwenCodeHandler extends BaseProvider implements SingleCompletionHan
287287

288288
override getModel(): { id: string; info: ModelInfo } {
289289
const id = this.options.apiModelId ?? qwenCodeDefaultModelId
290-
let info = qwenCodeModels[id as keyof typeof qwenCodeModels] || qwenCodeModels[qwenCodeDefaultModelId]
290+
let info: ModelInfo =
291+
qwenCodeModels[id as keyof typeof qwenCodeModels] || qwenCodeModels[qwenCodeDefaultModelId]
291292

292293
// Apply custom context window limit if configured
293294
if (this.options.qwenCodeMaxContextWindow && this.options.qwenCodeMaxContextWindow > 0) {

0 commit comments

Comments
 (0)