diff --git a/public/locales/da/api.json b/public/locales/da/api.json index 5150234..5400504 100644 --- a/public/locales/da/api.json +++ b/public/locales/da/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "Brug gratis", "inputLabel": "API Endpoint", - "description": "Tak til <0>Ayaka0> for at levere det gratis API-endpoint: https://chatgpt-api.shn.hk/v1/" + "description": "Tak til <0>Ayaka0> for at levere det gratis API-endpoint: https://chatgpt-api.shn.hk/v1/", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "Brug din egen API-nøgle", @@ -11,5 +12,7 @@ "inputLabel": "API-nøgle" }, "customEndpoint": "Brug brugerdefineret API-endpoint", - "shareGPT": "Tjek <0>ShareGPT0>, et API-nøgle delingsværktøj, der driver https://sharegpt.churchless.tech/share/v1/chat" + "shareGPT": "Tjek <0>ShareGPT0>, et API-nøgle delingsværktøj, der driver https://sharegpt.churchless.tech/share/v1/chat", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/en/api.json b/public/locales/en/api.json index 0f2422f..29f593e 100644 --- a/public/locales/en/api.json +++ b/public/locales/en/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "Use for free", "inputLabel": "API Endpoint", - "description": "Thank you to <0>Ayaka0> for providing the free API endpoint: https://chatgpt-api.shn.hk/v1/" + "description": "Thank you to <0>Ayaka0> for providing the free API endpoint: https://chatgpt-api.shn.hk/v1/", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "Use your own API key", @@ -11,5 +12,7 @@ "inputLabel": "API Key" }, "customEndpoint": "Use custom API endpoint", - "shareGPT": "Checkout <0>ShareGPT0>, a API key sharing tool that powers https://sharegpt.churchless.tech/share/v1/chat" + "shareGPT": "Checkout <0>ShareGPT0>, a API key sharing tool that powers https://sharegpt.churchless.tech/share/v1/chat", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/es/api.json b/public/locales/es/api.json index 67689b9..681680c 100644 --- a/public/locales/es/api.json +++ b/public/locales/es/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "Uso gratuito", "inputLabel": "Punto final de acceso de la API", - "description": "Gracias a <0>Ayaka0> por proveer el punto final de acceso gratuito: https://chatgpt-api.shn.hk/v1/" + "description": "Gracias a <0>Ayaka0> por proveer el punto final de acceso gratuito: https://chatgpt-api.shn.hk/v1/", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "Usa tu propia clave API", @@ -11,5 +12,7 @@ "inputLabel": "Clave API" }, "customEndpoint": "Usar un punto final de acceso personalizado", - "shareGPT": "Echa un vistazo a <0>ShareGPT0>, una herramienta que permite compartir claves API: https://sharegpt.churchless.tech/share/v1/chat" + "shareGPT": "Echa un vistazo a <0>ShareGPT0>, una herramienta que permite compartir claves API: https://sharegpt.churchless.tech/share/v1/chat", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/nb/api.json b/public/locales/nb/api.json index 9fb3f12..2c9f39d 100644 --- a/public/locales/nb/api.json +++ b/public/locales/nb/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "Bruk gratis", "inputLabel": "API-sluttpunkt", - "description": "Takk til <0>Ayaka0> for å tilby det gratis API-sluttpunktet: https://chatgpt-api.shn.hk/v1/" + "description": "Takk til <0>Ayaka0> for å tilby det gratis API-sluttpunktet: https://chatgpt-api.shn.hk/v1/", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "Bruk din egen API-nøkkel", @@ -11,5 +12,7 @@ "inputLabel": "API-nøkkel" }, "customEndpoint": "Bruk egendefinert API-sluttpunkt", - "shareGPT": "Sjekk ut <0>ShareGPT0>, et API-nøkkel delingsverktøy som driver https://sharegpt.churchless.tech/share/v1/chat" + "shareGPT": "Sjekk ut <0>ShareGPT0>, et API-nøkkel delingsverktøy som driver https://sharegpt.churchless.tech/share/v1/chat", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/sv/api.json b/public/locales/sv/api.json index 1277d8c..9e2397d 100644 --- a/public/locales/sv/api.json +++ b/public/locales/sv/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "Använd gratis", "inputLabel": "API Endpoint", - "description": "Tack till <0>Ayaka0> för att ha tillhandahållit den kostnadsfria API-endpointen: https://chatgpt-api.shn.hk/v1/" + "description": "Tack till <0>Ayaka0> för att ha tillhandahållit den kostnadsfria API-endpointen: https://chatgpt-api.shn.hk/v1/", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "Använd din egen API-nyckel", @@ -11,5 +12,7 @@ "inputLabel": "API-nyckel" }, "customEndpoint": "Använd anpassad API-endpoint", - "shareGPT": "Kolla in <0>ShareGPT0>, ett API-nyckeldelningsverktyg som möjliggör https://sharegpt.churchless.tech/share/v1/chat" + "shareGPT": "Kolla in <0>ShareGPT0>, ett API-nyckeldelningsverktyg som möjliggör https://sharegpt.churchless.tech/share/v1/chat", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/zh-CN/api.json b/public/locales/zh-CN/api.json index eee4e38..8ffdd70 100644 --- a/public/locales/zh-CN/api.json +++ b/public/locales/zh-CN/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "使用免费的 API 端点", "inputLabel": "API 端点", - "description": "感谢 <0>Ayaka0> 提供免费的 API 端点: https://chatgpt-api.shn.hk/v1/。" + "description": "感谢 <0>Ayaka0> 提供免费的 API 端点: https://chatgpt-api.shn.hk/v1/。", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "使用自己的 API 密钥", @@ -11,5 +12,7 @@ "inputLabel": "API 密钥" }, "customEndpoint": "使用自定义 API 端点", - "shareGPT": "看看 <0>ShareGPT0>,一个 API key 共享工具,驱动 https://sharegpt.churchless.tech/share/v1/chat。" + "shareGPT": "看看 <0>ShareGPT0>,一个 API key 共享工具,驱动 https://sharegpt.churchless.tech/share/v1/chat。", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/zh-HK/api.json b/public/locales/zh-HK/api.json index 224bb4d..0f20787 100644 --- a/public/locales/zh-HK/api.json +++ b/public/locales/zh-HK/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "使用免費嘅 API 端點", "inputLabel": "API 端點", - "description": "感謝 <0>Ayaka0> 提供免費嘅 API 端點: https://chatgpt-api.shn.hk/v1/。" + "description": "感謝 <0>Ayaka0> 提供免費嘅 API 端點: https://chatgpt-api.shn.hk/v1/。", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "使用自己嘅 API 金鑰", @@ -11,5 +12,7 @@ "inputLabel": "API 金鑰" }, "customEndpoint": "使用自訂 API 端點", - "shareGPT": "睇下 ShareGPT,一個 API key 共享工具,驅動 https://sharegpt.churchless.tech/share/v1/chat。" + "shareGPT": "睇下 ShareGPT,一個 API key 共享工具,驅動 https://sharegpt.churchless.tech/share/v1/chat。", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/public/locales/zh-TW/api.json b/public/locales/zh-TW/api.json index 7c500ca..89126ac 100644 --- a/public/locales/zh-TW/api.json +++ b/public/locales/zh-TW/api.json @@ -3,7 +3,8 @@ "apiEndpoint": { "option": "使用免費的 API 端點", "inputLabel": "API 端點", - "description": "感謝 <0>Ayaka0> 提供免費的 API 端點: https://chatgpt-api.shn.hk/v1/。" + "description": "感謝 <0>Ayaka0> 提供免費的 API 端點: https://chatgpt-api.shn.hk/v1/。", + "note": "Please note that the availability of the free endpoint is not indefinite, as its funding is limited and will eventually be depleted. Users with their own API key can continue using BetterChatGPT without any disruptions." }, "apiKey": { "option": "使用自己的 API 金鑰", @@ -11,5 +12,7 @@ "inputLabel": "API 金鑰" }, "customEndpoint": "使用自定義 API 端點", - "shareGPT": "看看 <0>ShareGPT0>,一個 API key 共享工具,驅動 https://sharegpt.churchless.tech/share/v1/chat。" + "shareGPT": "看看 <0>ShareGPT0>,一個 API key 共享工具,驅動 https://sharegpt.churchless.tech/share/v1/chat。", + "advancedConfig": "View advanced API configuration <0>here0>", + "noApiKeyWarning": "No API key supplied! Please check your API settings." } diff --git a/src/App.tsx b/src/App.tsx index 8ad6d71..4d6ad89 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,6 +7,7 @@ import Menu from '@components/Menu'; import useInitialiseNewChat from '@hooks/useInitialiseNewChat'; import { ChatInterface } from '@type/chat'; import { Theme } from '@type/theme'; +import ApiPopup from '@components/ApiPopup'; function App() { const initialiseNewChat = useInitialiseNewChat(); @@ -68,6 +69,7 @@ function App() {