Minor fixes

This commit is contained in:
Saoud Rizwan
2024-08-28 06:13:46 -04:00
parent 13af5992af
commit af46531e52
2 changed files with 7 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ export type BedrockModelId = keyof typeof bedrockModels
export const bedrockDefaultModelId: BedrockModelId = "anthropic.claude-3-5-sonnet-20240620-v1:0" export const bedrockDefaultModelId: BedrockModelId = "anthropic.claude-3-5-sonnet-20240620-v1:0"
export const bedrockModels = { export const bedrockModels = {
"anthropic.claude-3-5-sonnet-20240620-v1:0": { "anthropic.claude-3-5-sonnet-20240620-v1:0": {
maxTokens: 4096, maxTokens: 8192,
contextWindow: 200_000, contextWindow: 200_000,
supportsImages: true, supportsImages: true,
supportsPromptCache: false, supportsPromptCache: false,

View File

@@ -81,6 +81,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiErrorMessa
<VSCodeTextField <VSCodeTextField
value={apiConfiguration?.apiKey || ""} value={apiConfiguration?.apiKey || ""}
style={{ width: "100%" }} style={{ width: "100%" }}
type="password"
onInput={handleInputChange("apiKey")} onInput={handleInputChange("apiKey")}
placeholder="Enter API Key..."> placeholder="Enter API Key...">
<span style={{ fontWeight: 500 }}>Anthropic API Key</span> <span style={{ fontWeight: 500 }}>Anthropic API Key</span>
@@ -104,6 +105,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiErrorMessa
<VSCodeTextField <VSCodeTextField
value={apiConfiguration?.openRouterApiKey || ""} value={apiConfiguration?.openRouterApiKey || ""}
style={{ width: "100%" }} style={{ width: "100%" }}
type="password"
onInput={handleInputChange("openRouterApiKey")} onInput={handleInputChange("openRouterApiKey")}
placeholder="Enter API Key..."> placeholder="Enter API Key...">
<span style={{ fontWeight: 500 }}>OpenRouter API Key</span> <span style={{ fontWeight: 500 }}>OpenRouter API Key</span>
@@ -131,6 +133,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiErrorMessa
<VSCodeTextField <VSCodeTextField
value={apiConfiguration?.awsAccessKey || ""} value={apiConfiguration?.awsAccessKey || ""}
style={{ width: "100%" }} style={{ width: "100%" }}
type="password"
onInput={handleInputChange("awsAccessKey")} onInput={handleInputChange("awsAccessKey")}
placeholder="Enter Access Key..."> placeholder="Enter Access Key...">
<span style={{ fontWeight: 500 }}>AWS Access Key</span> <span style={{ fontWeight: 500 }}>AWS Access Key</span>
@@ -138,6 +141,7 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiErrorMessa
<VSCodeTextField <VSCodeTextField
value={apiConfiguration?.awsSecretKey || ""} value={apiConfiguration?.awsSecretKey || ""}
style={{ width: "100%" }} style={{ width: "100%" }}
type="password"
onInput={handleInputChange("awsSecretKey")} onInput={handleInputChange("awsSecretKey")}
placeholder="Enter Secret Key..."> placeholder="Enter Secret Key...">
<span style={{ fontWeight: 500 }}>AWS Secret Key</span> <span style={{ fontWeight: 500 }}>AWS Secret Key</span>
@@ -228,13 +232,13 @@ const ApiOptions: React.FC<ApiOptionsProps> = ({ showModelOptions, apiErrorMessa
href="https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude#before_you_begin" href="https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-claude#before_you_begin"
style={{ display: "inline" }}> style={{ display: "inline" }}>
{ {
"1) create a Google Cloud account > enable the Vertex AI API > enable the desired Claude models," "1) create a Google Cloud account enable the Vertex AI API enable the desired Claude models,"
} }
</VSCodeLink>{" "} </VSCodeLink>{" "}
<VSCodeLink <VSCodeLink
href="https://cloud.google.com/docs/authentication/provide-credentials-adc#google-idp" href="https://cloud.google.com/docs/authentication/provide-credentials-adc#google-idp"
style={{ display: "inline" }}> style={{ display: "inline" }}>
{"2) install the Google Cloud CLI > configure Application Default Credentials."} {"2) install the Google Cloud CLI configure Application Default Credentials."}
</VSCodeLink> </VSCodeLink>
</p> </p>
</div> </div>