@@ -1651,8 +1651,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
16511651 lmStudioModelId,
16521652 lmStudioBaseUrl,
16531653 anthropicBaseUrl,
1654- anthropicThinking,
1655- vertexThinking,
16561654 geminiApiKey,
16571655 openAiNativeApiKey,
16581656 deepSeekApiKey,
@@ -1673,6 +1671,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
16731671 requestyModelInfo,
16741672 modelTemperature,
16751673 modelMaxTokens,
1674+ modelMaxThinkingTokens,
16761675 } = apiConfiguration
16771676 await Promise . all ( [
16781677 this . updateGlobalState ( "apiProvider" , apiProvider ) ,
@@ -1701,8 +1700,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
17011700 this . updateGlobalState ( "lmStudioModelId" , lmStudioModelId ) ,
17021701 this . updateGlobalState ( "lmStudioBaseUrl" , lmStudioBaseUrl ) ,
17031702 this . updateGlobalState ( "anthropicBaseUrl" , anthropicBaseUrl ) ,
1704- this . updateGlobalState ( "anthropicThinking" , anthropicThinking ) ,
1705- this . updateGlobalState ( "vertexThinking" , vertexThinking ) ,
17061703 this . storeSecret ( "geminiApiKey" , geminiApiKey ) ,
17071704 this . storeSecret ( "openAiNativeApiKey" , openAiNativeApiKey ) ,
17081705 this . storeSecret ( "deepSeekApiKey" , deepSeekApiKey ) ,
@@ -1723,6 +1720,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
17231720 this . updateGlobalState ( "requestyModelInfo" , requestyModelInfo ) ,
17241721 this . updateGlobalState ( "modelTemperature" , modelTemperature ) ,
17251722 this . updateGlobalState ( "modelMaxTokens" , modelMaxTokens ) ,
1723+ this . updateGlobalState ( "anthropicThinking" , modelMaxThinkingTokens ) ,
17261724 ] )
17271725 if ( this . cline ) {
17281726 this . cline . api = buildApiHandler ( apiConfiguration )
@@ -2159,8 +2157,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
21592157 lmStudioModelId ,
21602158 lmStudioBaseUrl ,
21612159 anthropicBaseUrl ,
2162- anthropicThinking ,
2163- vertexThinking ,
21642160 geminiApiKey ,
21652161 openAiNativeApiKey ,
21662162 deepSeekApiKey ,
@@ -2216,6 +2212,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
22162212 requestyModelInfo ,
22172213 modelTemperature ,
22182214 modelMaxTokens ,
2215+ modelMaxThinkingTokens ,
22192216 maxOpenTabsContext ,
22202217 ] = await Promise . all ( [
22212218 this . getGlobalState ( "apiProvider" ) as Promise < ApiProvider | undefined > ,
@@ -2244,8 +2241,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
22442241 this . getGlobalState ( "lmStudioModelId" ) as Promise < string | undefined > ,
22452242 this . getGlobalState ( "lmStudioBaseUrl" ) as Promise < string | undefined > ,
22462243 this . getGlobalState ( "anthropicBaseUrl" ) as Promise < string | undefined > ,
2247- this . getGlobalState ( "anthropicThinking" ) as Promise < number | undefined > ,
2248- this . getGlobalState ( "vertexThinking" ) as Promise < number | undefined > ,
22492244 this . getSecret ( "geminiApiKey" ) as Promise < string | undefined > ,
22502245 this . getSecret ( "openAiNativeApiKey" ) as Promise < string | undefined > ,
22512246 this . getSecret ( "deepSeekApiKey" ) as Promise < string | undefined > ,
@@ -2301,6 +2296,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
23012296 this . getGlobalState ( "requestyModelInfo" ) as Promise < ModelInfo | undefined > ,
23022297 this . getGlobalState ( "modelTemperature" ) as Promise < number | undefined > ,
23032298 this . getGlobalState ( "modelMaxTokens" ) as Promise < number | undefined > ,
2299+ this . getGlobalState ( "anthropicThinking" ) as Promise < number | undefined > ,
23042300 this . getGlobalState ( "maxOpenTabsContext" ) as Promise < number | undefined > ,
23052301 ] )
23062302
@@ -2346,8 +2342,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
23462342 lmStudioModelId,
23472343 lmStudioBaseUrl,
23482344 anthropicBaseUrl,
2349- anthropicThinking,
2350- vertexThinking,
23512345 geminiApiKey,
23522346 openAiNativeApiKey,
23532347 deepSeekApiKey,
@@ -2368,6 +2362,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
23682362 requestyModelInfo,
23692363 modelTemperature,
23702364 modelMaxTokens,
2365+ modelMaxThinkingTokens,
23712366 } ,
23722367 lastShownAnnouncementId,
23732368 customInstructions,
0 commit comments