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.