diff --git a/binary/package-lock.json b/binary/package-lock.json index 5f1410c1a..010492e82 100644 --- a/binary/package-lock.json +++ b/binary/package-lock.json @@ -74,6 +74,7 @@ "jsdom": "^24.0.0", "launchdarkly-node-client-sdk": "^3.2.0", "llm-code-highlighter": "^0.0.14", + "lru-cache": "^10.2.2", "mac-ca": "^3.1.0", "node-fetch": "^3.3.2", "node-html-markdown": "^1.3.0", diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 3f340f6ce..4bb201b3e 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -246,7 +246,24 @@ "region": { "title": "Region", "description": "The region where the model is hosted", - "type": "string" + "anyOf":[ + { + "enum": [ + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + "eu-west-1", + "eu-central-1", + "ap-southeast-1", + "ap-northeast-1", + "ap-south-1" + ] + }, + { + "type": "string" + } + ] }, "profile": { "title": "Profile", @@ -2145,7 +2162,8 @@ "gemini", "voyage", "nvidia", - "bedrock" + "bedrock", + "sagemaker" ] }, "model": { @@ -2179,7 +2197,24 @@ "region": { "title": "Region", "description": "The region where the model is hosted", - "type": "string" + "anyOf":[ + { + "enum": [ + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + "eu-west-1", + "eu-central-1", + "ap-southeast-1", + "ap-northeast-1", + "ap-south-1" + ] + }, + { + "type": "string" + } + ] }, "profile": { "title": "Profile", @@ -2201,6 +2236,24 @@ "then": { "required": ["apiKey"] } + }, + { + "if": { + "properties": { + "provider": { + "enum": ["sagemaker"] + } + }, + "required": ["provider"] + }, + "then": { + "properties": { + "model": { + "markdownDescription": "SageMaker endpoint name" + } + }, + "required": ["model"] + } } ] }, diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index 26877d8a3..cc747a337 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -249,7 +249,24 @@ "region": { "title": "Region", "description": "The region where the model is hosted", - "type": "string" + "anyOf": [ + { + "enum": [ + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + "eu-west-1", + "eu-central-1", + "ap-southeast-1", + "ap-northeast-1", + "ap-south-1" + ] + }, + { + "type": "string" + } + ] }, "profile": { "title": "Profile", @@ -2391,7 +2408,8 @@ "gemini", "voyage", "nvidia", - "bedrock" + "bedrock", + "sagemaker" ] }, "model": { @@ -2425,7 +2443,24 @@ "region": { "title": "Region", "description": "The region where the model is hosted", - "type": "string" + "anyOf": [ + { + "enum": [ + "us-east-1", + "us-east-2", + "us-west-1", + "us-west-2", + "eu-west-1", + "eu-central-1", + "ap-southeast-1", + "ap-northeast-1", + "ap-south-1" + ] + }, + { + "type": "string" + } + ] }, "profile": { "title": "Profile", @@ -2458,6 +2493,30 @@ "apiKey" ] } + }, + { + "if": { + "properties": { + "provider": { + "enum": [ + "sagemaker" + ] + } + }, + "required": [ + "provider" + ] + }, + "then": { + "properties": { + "model": { + "markdownDescription": "SageMaker endpoint name" + } + }, + "required": [ + "model" + ] + } } ] }, diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index 5bfd16377..bf3982055 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.9.214", + "version": "0.9.215", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "continue", - "version": "0.9.214", + "version": "0.9.215", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 2269b08dc..197340faa 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -2,7 +2,7 @@ "name": "continue", "icon": "media/icon.png", "author": "Continue Dev, Inc", - "version": "0.9.214", + "version": "0.9.215", "repository": { "type": "git", "url": "https://github.com/continuedev/continue"