@@ -46,6 +46,7 @@ type SecretKey =
4646 | "openAiNativeApiKey"
4747 | "deepSeekApiKey"
4848 | "requestyApiKey"
49+ | "togetherApiKey"
4950 | "qwenApiKey"
5051 | "mistralApiKey"
5152 | "authToken"
@@ -84,6 +85,7 @@ type GlobalStateKey =
8485 | "liteLlmModelId"
8586 | "qwenApiLine"
8687 | "requestyModelId"
88+ | "togetherModelId"
8789
8890export const GlobalFileNames = {
8991 apiConversationHistory : "api_conversation_history.json" ,
@@ -450,6 +452,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
450452 deepSeekApiKey,
451453 requestyApiKey,
452454 requestyModelId,
455+ togetherApiKey,
456+ togetherModelId,
453457 qwenApiKey,
454458 mistralApiKey,
455459 azureApiVersion,
@@ -485,6 +489,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
485489 await this . storeSecret ( "openAiNativeApiKey" , openAiNativeApiKey )
486490 await this . storeSecret ( "deepSeekApiKey" , deepSeekApiKey )
487491 await this . storeSecret ( "requestyApiKey" , requestyApiKey )
492+ await this . storeSecret ( "togetherApiKey" , togetherApiKey )
488493 await this . storeSecret ( "qwenApiKey" , qwenApiKey )
489494 await this . storeSecret ( "mistralApiKey" , mistralApiKey )
490495 await this . updateGlobalState ( "azureApiVersion" , azureApiVersion )
@@ -495,6 +500,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
495500 await this . updateGlobalState ( "liteLlmModelId" , liteLlmModelId )
496501 await this . updateGlobalState ( "qwenApiLine" , qwenApiLine )
497502 await this . updateGlobalState ( "requestyModelId" , requestyModelId )
503+ await this . updateGlobalState ( "togetherModelId" , togetherModelId )
498504 if ( this . cline ) {
499505 this . cline . api = buildApiHandler ( message . apiConfiguration )
500506 }
@@ -1387,6 +1393,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
13871393 deepSeekApiKey ,
13881394 requestyApiKey ,
13891395 requestyModelId ,
1396+ togetherApiKey ,
1397+ togetherModelId ,
13901398 qwenApiKey ,
13911399 mistralApiKey ,
13921400 azureApiVersion ,
@@ -1434,6 +1442,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
14341442 this . getSecret ( "deepSeekApiKey" ) as Promise < string | undefined > ,
14351443 this . getSecret ( "requestyApiKey" ) as Promise < string | undefined > ,
14361444 this . getGlobalState ( "requestyModelId" ) as Promise < string | undefined > ,
1445+ this . getSecret ( "togetherApiKey" ) as Promise < string | undefined > ,
1446+ this . getGlobalState ( "togetherModelId" ) as Promise < string | undefined > ,
14371447 this . getSecret ( "qwenApiKey" ) as Promise < string | undefined > ,
14381448 this . getSecret ( "mistralApiKey" ) as Promise < string | undefined > ,
14391449 this . getGlobalState ( "azureApiVersion" ) as Promise < string | undefined > ,
@@ -1498,6 +1508,8 @@ export class ClineProvider implements vscode.WebviewViewProvider {
14981508 deepSeekApiKey,
14991509 requestyApiKey,
15001510 requestyModelId,
1511+ togetherApiKey,
1512+ togetherModelId,
15011513 qwenApiKey,
15021514 qwenApiLine,
15031515 mistralApiKey,
@@ -1596,6 +1608,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
15961608 "openAiNativeApiKey" ,
15971609 "deepSeekApiKey" ,
15981610 "requestyApiKey" ,
1611+ "togetherApiKey" ,
15991612 "qwenApiKey" ,
16001613 "mistralApiKey" ,
16011614 "authToken" ,
0 commit comments