@@ -1676,6 +1676,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
16761676 modelTemperature,
16771677 modelMaxTokens,
16781678 modelMaxThinkingTokens,
1679+ lmStudioDraftModelId,
1680+ lmStudioSpeculativeDecodingEnabled,
16791681 } = apiConfiguration
16801682 await Promise . all ( [
16811683 this . updateGlobalState ( "apiProvider" , apiProvider ) ,
@@ -1725,6 +1727,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
17251727 this . updateGlobalState ( "modelTemperature" , modelTemperature ) ,
17261728 this . updateGlobalState ( "modelMaxTokens" , modelMaxTokens ) ,
17271729 this . updateGlobalState ( "anthropicThinking" , modelMaxThinkingTokens ) ,
1730+ this . updateGlobalState ( "lmStudioDraftModelId" , lmStudioDraftModelId ) ,
1731+ this . updateGlobalState ( "lmStudioSpeculativeDecodingEnabled" , lmStudioSpeculativeDecodingEnabled ) ,
17281732 ] )
17291733 if ( this . cline ) {
17301734 this . cline . api = buildApiHandler ( apiConfiguration )
@@ -2221,6 +2225,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
22212225 modelMaxThinkingTokens ,
22222226 maxOpenTabsContext ,
22232227 browserToolEnabled ,
2228+ lmStudioSpeculativeDecodingEnabled ,
2229+ lmStudioDraftModelId ,
22242230 ] = await Promise . all ( [
22252231 this . getGlobalState ( "apiProvider" ) as Promise < ApiProvider | undefined > ,
22262232 this . getGlobalState ( "apiModelId" ) as Promise < string | undefined > ,
@@ -2306,6 +2312,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
23062312 this . getGlobalState ( "anthropicThinking" ) as Promise < number | undefined > ,
23072313 this . getGlobalState ( "maxOpenTabsContext" ) as Promise < number | undefined > ,
23082314 this . getGlobalState ( "browserToolEnabled" ) as Promise < boolean | undefined > ,
2315+ this . getGlobalState ( "lmStudioSpeculativeDecodingEnabled" ) as Promise < boolean | undefined > ,
2316+ this . getGlobalState ( "lmStudioDraftModelId" ) as Promise < string | undefined > ,
23092317 ] )
23102318
23112319 let apiProvider : ApiProvider
@@ -2371,6 +2379,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
23712379 modelTemperature,
23722380 modelMaxTokens,
23732381 modelMaxThinkingTokens,
2382+ lmStudioSpeculativeDecodingEnabled,
2383+ lmStudioDraftModelId,
23742384 } ,
23752385 lastShownAnnouncementId,
23762386 customInstructions,
0 commit comments