|
|
@@ -40,6 +40,7 @@ type GlobalStateKey =
|
|
|
| "apiProvider"
|
|
|
| "apiModelId"
|
|
|
| "awsRegion"
|
|
|
+ | "awsUseCrossRegionInference"
|
|
|
| "vertexProjectId"
|
|
|
| "vertexRegion"
|
|
|
| "lastShownAnnouncementId"
|
|
|
@@ -350,6 +351,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
awsSecretKey,
|
|
|
awsSessionToken,
|
|
|
awsRegion,
|
|
|
+ awsUseCrossRegionInference,
|
|
|
vertexProjectId,
|
|
|
vertexRegion,
|
|
|
openAiBaseUrl,
|
|
|
@@ -372,6 +374,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
await this.storeSecret("awsSecretKey", awsSecretKey)
|
|
|
await this.storeSecret("awsSessionToken", awsSessionToken)
|
|
|
await this.updateGlobalState("awsRegion", awsRegion)
|
|
|
+ await this.updateGlobalState("awsUseCrossRegionInference", awsUseCrossRegionInference)
|
|
|
await this.updateGlobalState("vertexProjectId", vertexProjectId)
|
|
|
await this.updateGlobalState("vertexRegion", vertexRegion)
|
|
|
await this.updateGlobalState("openAiBaseUrl", openAiBaseUrl)
|
|
|
@@ -824,6 +827,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
awsSecretKey,
|
|
|
awsSessionToken,
|
|
|
awsRegion,
|
|
|
+ awsUseCrossRegionInference,
|
|
|
vertexProjectId,
|
|
|
vertexRegion,
|
|
|
openAiBaseUrl,
|
|
|
@@ -850,6 +854,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
this.getSecret("awsSecretKey") as Promise<string | undefined>,
|
|
|
this.getSecret("awsSessionToken") as Promise<string | undefined>,
|
|
|
this.getGlobalState("awsRegion") as Promise<string | undefined>,
|
|
|
+ this.getGlobalState("awsUseCrossRegionInference") as Promise<boolean | undefined>,
|
|
|
this.getGlobalState("vertexProjectId") as Promise<string | undefined>,
|
|
|
this.getGlobalState("vertexRegion") as Promise<string | undefined>,
|
|
|
this.getGlobalState("openAiBaseUrl") as Promise<string | undefined>,
|
|
|
@@ -893,6 +898,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|
|
awsSecretKey,
|
|
|
awsSessionToken,
|
|
|
awsRegion,
|
|
|
+ awsUseCrossRegionInference,
|
|
|
vertexProjectId,
|
|
|
vertexRegion,
|
|
|
openAiBaseUrl,
|