@@ -45,6 +45,7 @@ type SecretKey =
4545 | "geminiApiKey"
4646 | "openAiNativeApiKey"
4747 | "deepSeekApiKey"
48+ | "requestyApiKey"
4849 | "qwenApiKey"
4950 | "mistralApiKey"
5051 | "authToken"
@@ -80,6 +81,7 @@ type GlobalStateKey =
8081 | "liteLlmBaseUrl"
8182 | "liteLlmModelId"
8283 | "qwenApiLine"
84+ | "requestyModelId"
8385
8486export const GlobalFileNames = {
8587 apiConversationHistory : "api_conversation_history.json" ,
@@ -442,6 +444,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
442444 geminiApiKey,
443445 openAiNativeApiKey,
444446 deepSeekApiKey,
447+ requestyApiKey,
448+ requestyModelId,
445449 qwenApiKey,
446450 mistralApiKey,
447451 azureApiVersion,
@@ -474,6 +478,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
474478 await this . storeSecret ( "geminiApiKey" , geminiApiKey )
475479 await this . storeSecret ( "openAiNativeApiKey" , openAiNativeApiKey )
476480 await this . storeSecret ( "deepSeekApiKey" , deepSeekApiKey )
481+ await this . storeSecret ( "requestyApiKey" , requestyApiKey )
477482 await this . storeSecret ( "qwenApiKey" , qwenApiKey )
478483 await this . storeSecret ( "mistralApiKey" , mistralApiKey )
479484 await this . updateGlobalState ( "azureApiVersion" , azureApiVersion )
@@ -483,6 +488,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
483488 await this . updateGlobalState ( "liteLlmBaseUrl" , liteLlmBaseUrl )
484489 await this . updateGlobalState ( "liteLlmModelId" , liteLlmModelId )
485490 await this . updateGlobalState ( "qwenApiLine" , qwenApiLine )
491+ await this . updateGlobalState ( "requestyModelId" , requestyModelId )
486492 if ( this . cline ) {
487493 this . cline . api = buildApiHandler ( message . apiConfiguration )
488494 }
@@ -1371,6 +1377,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
13711377 geminiApiKey ,
13721378 openAiNativeApiKey ,
13731379 deepSeekApiKey ,
1380+ requestyApiKey ,
1381+ requestyModelId ,
13741382 qwenApiKey ,
13751383 mistralApiKey ,
13761384 azureApiVersion ,
@@ -1414,6 +1422,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
14141422 this . getSecret ( "geminiApiKey" ) as Promise < string | undefined > ,
14151423 this . getSecret ( "openAiNativeApiKey" ) as Promise < string | undefined > ,
14161424 this . getSecret ( "deepSeekApiKey" ) as Promise < string | undefined > ,
1425+ this . getSecret ( "requestyApiKey" ) as Promise < string | undefined > ,
1426+ this . getGlobalState ( "requestyModelId" ) as Promise < string | undefined > ,
14171427 this . getSecret ( "qwenApiKey" ) as Promise < string | undefined > ,
14181428 this . getSecret ( "mistralApiKey" ) as Promise < string | undefined > ,
14191429 this . getGlobalState ( "azureApiVersion" ) as Promise < string | undefined > ,
@@ -1474,6 +1484,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
14741484 geminiApiKey,
14751485 openAiNativeApiKey,
14761486 deepSeekApiKey,
1487+ requestyApiKey,
1488+ requestyModelId,
14771489 qwenApiKey,
14781490 qwenApiLine,
14791491 mistralApiKey,
@@ -1571,6 +1583,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
15711583 "geminiApiKey" ,
15721584 "openAiNativeApiKey" ,
15731585 "deepSeekApiKey" ,
1586+ "requestyApiKey" ,
15741587 "qwenApiKey" ,
15751588 "mistralApiKey" ,
15761589 "authToken" ,
0 commit comments