Browse Source

Update text in permissions

Saoud Rizwan 1 year ago
parent
commit
0ac7f63332
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/api/index.ts
  2. 3 3
      webview-ui/src/components/ApiOptions.tsx

+ 1 - 1
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)
 	}
 }

+ 3 - 3
webview-ui/src/components/ApiOptions.tsx

@@ -43,7 +43,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ 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.
 						<VSCodeLink href="https://console.anthropic.com/" style={{ display: "inline" }}>
 							You can get an Anthropic API key by signing up here.
 						</VSCodeLink>
@@ -66,7 +66,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ 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.
 						<VSCodeLink href="https://openrouter.ai/" style={{ display: "inline" }}>
 							You can get an OpenRouter API key by signing up here.
 						</VSCodeLink>
@@ -129,7 +129,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ 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.
 						<VSCodeLink
 							href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html"
 							style={{ display: "inline" }}>