Skip to content

Commit d54c2e0

Browse files
committed
Requesty: Fix 'Get API key' URL
1 parent 7f105db commit d54c2e0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import {
3737
OPENROUTER_DEFAULT_PROVIDER_NAME,
3838
} from "@src/components/ui/hooks/useOpenRouterModelProviders"
3939
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Button } from "@src/components/ui"
40-
import { getRequestyAuthUrl, getOpenRouterAuthUrl, getGlamaAuthUrl } from "@src/oauth/urls"
40+
import { getRequestyApiKeyUrl, getOpenRouterAuthUrl, getGlamaAuthUrl } from "@src/oauth/urls"
4141

4242
import { VSCodeButtonLink } from "../common/VSCodeButtonLink"
4343

@@ -570,10 +570,7 @@ const ApiOptions = ({
570570
{t("settings:providers.apiKeyStorageNotice")}
571571
</div>
572572
{!apiConfiguration?.requestyApiKey && (
573-
<VSCodeButtonLink
574-
href={getRequestyAuthUrl(uriScheme)}
575-
style={{ width: "100%" }}
576-
appearance="primary">
573+
<VSCodeButtonLink href={getRequestyApiKeyUrl()} style={{ width: "100%" }} appearance="primary">
577574
{t("settings:providers.getRequestyApiKey")}
578575
</VSCodeButtonLink>
579576
)}

webview-ui/src/i18n/locales/pt-BR/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"awsCustomArnDesc": "Certifique-se de que a região no ARN corresponde à região AWS selecionada acima.",
108108
"openRouterApiKey": "Chave de API OpenRouter",
109109
"flushModelsCache": "Limpar cache de modelos",
110-
"flushedModelsCache": "Cache limpa, por favor reabra a visualização de configurações",
110+
"flushedModelsCache": "Cache limpo, por favor reabra a visualização de configurações",
111111
"getOpenRouterApiKey": "Obter chave de API OpenRouter",
112112
"apiKeyStorageNotice": "As chaves de API são armazenadas com segurança no Armazenamento Secreto do VSCode",
113113
"glamaApiKey": "Chave de API Glama",

webview-ui/src/oauth/urls.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ export function getOpenRouterAuthUrl(uriScheme?: string) {
1414
export function getRequestyAuthUrl(uriScheme?: string) {
1515
return `https://app.requesty.ai/oauth/authorize?callback_url=${getCallbackUrl("requesty", uriScheme)}`
1616
}
17+
18+
export function getRequestyApiKeyUrl() {
19+
return "https://app.requesty.ai/api-keys"
20+
}

0 commit comments

Comments
 (0)