[Update] Add new auth key URLs and update translation labels for key management.
This commit is contained in:
@@ -77,6 +77,7 @@ config_page:
|
|||||||
version: "Version {{version}}"
|
version: "Version {{version}}"
|
||||||
model_download_button_label: "Download"
|
model_download_button_label: "Download"
|
||||||
correct_auth_key_required: "Correct Auth Key Required"
|
correct_auth_key_required: "Correct Auth Key Required"
|
||||||
|
open_auth_key_webpage: "Open Auth Key Management Webpage"
|
||||||
compute_device:
|
compute_device:
|
||||||
desc: "The accuracy and speed of each processing type may vary depending on your machine specs, and the compatibility with calculation methods may differ from the displayed order. Please use this as a general guideline."
|
desc: "The accuracy and speed of each processing type may vary depending on your machine specs, and the compatibility with calculation methods may differ from the displayed order. Please use this as a general guideline."
|
||||||
label_device: "Processing Device"
|
label_device: "Processing Device"
|
||||||
|
|||||||
@@ -76,6 +76,7 @@ config_page:
|
|||||||
common:
|
common:
|
||||||
version: "バージョン {{version}}"
|
version: "バージョン {{version}}"
|
||||||
model_download_button_label: "ダウンロード"
|
model_download_button_label: "ダウンロード"
|
||||||
|
open_auth_key_webpage: "認証キー管理ページを開く"
|
||||||
compute_device:
|
compute_device:
|
||||||
desc: "各処理タイプの精度・速度は、マシンスペックによって計算方法に相性があり、表示順とは異なる事があるため、大まかな目安としてください。"
|
desc: "各処理タイプの精度・速度は、マシンスペックによって計算方法に相性があり、表示順とは異なる事があるため、大まかな目安としてください。"
|
||||||
label_device: "処理デバイス"
|
label_device: "処理デバイス"
|
||||||
|
|||||||
@@ -137,6 +137,12 @@ export const whisper_weight_type_status = [
|
|||||||
|
|
||||||
|
|
||||||
export const deepl_auth_key_url = "https://www.deepl.com/ja/your-account/keys";
|
export const deepl_auth_key_url = "https://www.deepl.com/ja/your-account/keys";
|
||||||
|
export const plamo_auth_key_url = "https://plamo.preferredai.jp/api";
|
||||||
|
export const gemini_auth_key_url = "https://aistudio.google.com/api-keys";
|
||||||
|
export const openai_auth_key_url = "https://platform.openai.com/api-keys";
|
||||||
|
export const groq_auth_key_url = "https://console.groq.com/keys";
|
||||||
|
export const openrouter_auth_key_url = "https://openrouter.ai/keys";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export const vrct_document_home_url = "https://misyaguziya.github.io/VRCT-Docs";
|
export const vrct_document_home_url = "https://misyaguziya.github.io/VRCT-Docs";
|
||||||
|
|||||||
@@ -29,7 +29,15 @@ import {
|
|||||||
ConnectionCheckButton,
|
ConnectionCheckButton,
|
||||||
} from "../_components";
|
} from "../_components";
|
||||||
|
|
||||||
import { deepl_auth_key_url } from "@ui_configs";
|
import {
|
||||||
|
deepl_auth_key_url,
|
||||||
|
plamo_auth_key_url,
|
||||||
|
gemini_auth_key_url,
|
||||||
|
openai_auth_key_url,
|
||||||
|
groq_auth_key_url,
|
||||||
|
openrouter_auth_key_url,
|
||||||
|
} from "@ui_configs";
|
||||||
|
|
||||||
import { useLLMConnection } from "@logics_common";
|
import { useLLMConnection } from "@logics_common";
|
||||||
|
|
||||||
export const Translation = () => {
|
export const Translation = () => {
|
||||||
@@ -256,7 +264,7 @@ const DeepLAuthKey_Box = () => {
|
|||||||
{translator: t("main_page.translator")}
|
{translator: t("main_page.translator")}
|
||||||
)}
|
)}
|
||||||
webpage_url={deepl_auth_key_url}
|
webpage_url={deepl_auth_key_url}
|
||||||
open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")}
|
open_webpage_label={t("config_page.common.open_auth_key_webpage")}
|
||||||
variable={variable}
|
variable={variable}
|
||||||
state={currentDeepLAuthKey.state}
|
state={currentDeepLAuthKey.state}
|
||||||
onChangeFunction={onChangeFunction}
|
onChangeFunction={onChangeFunction}
|
||||||
@@ -282,8 +290,8 @@ const PlamoAuthKey_Box = () => {
|
|||||||
<AuthKeyContainer
|
<AuthKeyContainer
|
||||||
label="Plamo Auth Key"
|
label="Plamo Auth Key"
|
||||||
desc="Plamo Auth Desc"
|
desc="Plamo Auth Desc"
|
||||||
// webpage_url={deepl_auth_key_url}
|
webpage_url={plamo_auth_key_url}
|
||||||
// open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")}
|
open_webpage_label={t("config_page.common.open_auth_key_webpage")}
|
||||||
variable={variable}
|
variable={variable}
|
||||||
state={currentPlamoAuthKey.state}
|
state={currentPlamoAuthKey.state}
|
||||||
onChangeFunction={onChangeFunction}
|
onChangeFunction={onChangeFunction}
|
||||||
@@ -344,8 +352,8 @@ const GeminiAuthKey_Box = () => {
|
|||||||
<AuthKeyContainer
|
<AuthKeyContainer
|
||||||
label="Gemini Auth Key"
|
label="Gemini Auth Key"
|
||||||
desc="Gemini Auth Desc"
|
desc="Gemini Auth Desc"
|
||||||
// webpage_url={deepl_auth_key_url}
|
webpage_url={gemini_auth_key_url}
|
||||||
// open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")}
|
open_webpage_label={t("config_page.common.open_auth_key_webpage")}
|
||||||
variable={variable}
|
variable={variable}
|
||||||
state={currentGeminiAuthKey.state}
|
state={currentGeminiAuthKey.state}
|
||||||
onChangeFunction={onChangeFunction}
|
onChangeFunction={onChangeFunction}
|
||||||
@@ -405,8 +413,8 @@ const OpenAIAuthKey_Box = () => {
|
|||||||
<AuthKeyContainer
|
<AuthKeyContainer
|
||||||
label="OpenAI Auth Key"
|
label="OpenAI Auth Key"
|
||||||
desc="OpenAI Auth Desc"
|
desc="OpenAI Auth Desc"
|
||||||
// webpage_url={deepl_auth_key_url}
|
webpage_url={openai_auth_key_url}
|
||||||
// open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")}
|
open_webpage_label={t("config_page.common.open_auth_key_webpage")}
|
||||||
variable={variable}
|
variable={variable}
|
||||||
state={currentOpenAIAuthKey.state}
|
state={currentOpenAIAuthKey.state}
|
||||||
onChangeFunction={onChangeFunction}
|
onChangeFunction={onChangeFunction}
|
||||||
@@ -466,8 +474,8 @@ const GroqAuthKey_Box = () => {
|
|||||||
<AuthKeyContainer
|
<AuthKeyContainer
|
||||||
label="Groq Auth Key"
|
label="Groq Auth Key"
|
||||||
desc="Groq Auth Desc"
|
desc="Groq Auth Desc"
|
||||||
// webpage_url={deepl_auth_key_url}
|
webpage_url={groq_auth_key_url}
|
||||||
// open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")}
|
open_webpage_label={t("config_page.common.open_auth_key_webpage")}
|
||||||
variable={variable}
|
variable={variable}
|
||||||
state={currentGroqAuthKey.state}
|
state={currentGroqAuthKey.state}
|
||||||
onChangeFunction={onChangeFunction}
|
onChangeFunction={onChangeFunction}
|
||||||
@@ -527,8 +535,8 @@ const OpenRouterAuthKey_Box = () => {
|
|||||||
<AuthKeyContainer
|
<AuthKeyContainer
|
||||||
label="OpenRouter Auth Key"
|
label="OpenRouter Auth Key"
|
||||||
desc="OpenRouter Auth Desc"
|
desc="OpenRouter Auth Desc"
|
||||||
// webpage_url={deepl_auth_key_url}
|
webpage_url={openrouter_auth_key_url}
|
||||||
// open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")}
|
open_webpage_label={t("config_page.common.open_auth_key_webpage")}
|
||||||
variable={variable}
|
variable={variable}
|
||||||
state={currentOpenRouterAuthKey.state}
|
state={currentOpenRouterAuthKey.state}
|
||||||
onChangeFunction={onChangeFunction}
|
onChangeFunction={onChangeFunction}
|
||||||
|
|||||||
Reference in New Issue
Block a user