Skip to content

Commit f8a661d

Browse files
committed
use default model info for LM Studio when current info is not available
1 parent 3b92afa commit f8a661d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/types/src/providers/lm-studio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const LMSTUDIO_DEFAULT_TEMPERATURE = 0
77
export const lMStudioDefaultModelId = "mistralai/devstral-small-2505"
88
export const lMStudioDefaultModelInfo: ModelInfo = {
99
maxTokens: 8192,
10-
contextWindow: 200_000,
10+
contextWindow: 50_000,
1111
supportsImages: true,
1212
supportsComputerUse: true,
1313
supportsPromptCache: true,

webview-ui/src/components/ui/hooks/useSelectedModel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
glamaDefaultModelId,
3131
unboundDefaultModelId,
3232
litellmDefaultModelId,
33+
lMStudioDefaultModelInfo,
3334
} from "@roo-code/types"
3435

3536
import type { RouterModels } from "@roo/api"
@@ -188,7 +189,7 @@ function getSelectedModel({
188189
const info = routerModels.lmstudio && routerModels.lmstudio[id]
189190
return {
190191
id,
191-
info: info || undefined,
192+
info: info || lMStudioDefaultModelInfo,
192193
}
193194
}
194195
case "vscode-lm": {

0 commit comments

Comments
 (0)