From 0ac7f633326225b2bda027fd47f72d3f776b6d5d Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sat, 3 Aug 2024 19:22:06 -0400 Subject: [PATCH] Update text in permissions --- src/api/index.ts | 2 +- webview-ui/src/components/ApiOptions.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index ccc0914..5327fc1 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -31,6 +31,6 @@ export function buildApiHandler(configuration: ApiConfiguration): ApiHandler { case "bedrock": return new AwsBedrockHandler(options) default: - throw new Error(`Unknown API provider: ${apiProvider}`) + return new AnthropicHandler(options) } } diff --git a/webview-ui/src/components/ApiOptions.tsx b/webview-ui/src/components/ApiOptions.tsx index eb060b2..6ee55fa 100644 --- a/webview-ui/src/components/ApiOptions.tsx +++ b/webview-ui/src/components/ApiOptions.tsx @@ -43,7 +43,7 @@ const ApiOptions: React.FC = ({ apiConfiguration, setApiConfigu marginTop: "5px", color: "var(--vscode-descriptionForeground)", }}> - This key is stored locally and only used to make API requests from the extension. + This key is stored locally and only used to make API requests from this extension. You can get an Anthropic API key by signing up here. @@ -66,7 +66,7 @@ const ApiOptions: React.FC = ({ apiConfiguration, setApiConfigu marginTop: "5px", color: "var(--vscode-descriptionForeground)", }}> - This key is stored locally and only used to make API requests from the extension. + This key is stored locally and only used to make API requests from this extension. You can get an OpenRouter API key by signing up here. @@ -129,7 +129,7 @@ const ApiOptions: React.FC = ({ apiConfiguration, setApiConfigu marginTop: "5px", color: "var(--vscode-descriptionForeground)", }}> - These credentials are stored locally and only used to make API requests from the extension. + These credentials are stored locally and only used to make API requests from this extension.