From 4948f8130b8057cb405fd5a64249e900e916faa3 Mon Sep 17 00:00:00 2001 From: Tianzhou Chen Date: Mon, 7 Aug 2023 00:00:09 +0800 Subject: [PATCH] feat: remove gpt4 restriction --- src/components/OpenAIApiConfigView.tsx | 4 ++-- src/locales/en.json | 1 - src/locales/es.json | 2 -- src/locales/zh.json | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/OpenAIApiConfigView.tsx b/src/components/OpenAIApiConfigView.tsx index 2129f47..56334f6 100644 --- a/src/components/OpenAIApiConfigView.tsx +++ b/src/components/OpenAIApiConfigView.tsx @@ -23,8 +23,8 @@ const OpenAIApiConfigView = () => { { id: "gpt-4", title: `GPT-4 (${t("setting.openai-api-configuration.quota-per-ask", { count: 10 })})`, - disabled: !settingStore.setting.openAIApiConfig.key, - tooltip: t("setting.openai-api-configuration.provide-gpt4-key"), + disabled: false, + tooltip: "", }, ]; diff --git a/src/locales/en.json b/src/locales/en.json index b54d9b4..1053050 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -104,7 +104,6 @@ "model": "Model", "model-description": "Quota won't be consumed if you provide your own key below.", "quota-per-ask": "{{count}} quota per ask", - "provide-gpt4-key": "Require your own GPT-4 enabled API key", "key-description": "Bring your own key to waive quota requirement.", "find-my-key": "Find my key", "endpoint-description": "Optional endpoint pointing to your own compatible server or gateway." diff --git a/src/locales/es.json b/src/locales/es.json index 541458f..baead01 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -103,8 +103,6 @@ "self": "Configuración del API de OpenAI", "model": "Modelo", "model-description": "La cuota no se consumirá si proporciona su propia clave a continuación.", - "quota-per-ask": "{{count}} cuotas por pedido", - "provide-gpt4-key": "Requerir su propia clave API habilitada para GPT-4", "key-description": "Indique su propia clave para retirarse del límite por cuota.", "find-my-key": "Encuentra mi llave", "endpoint-description": "Endpoint opcional que apunta a su propio servidor o gateway compatible." diff --git a/src/locales/zh.json b/src/locales/zh.json index 14096f1..4a1c844 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -105,7 +105,6 @@ "model-description": "如果您提供自己的 key,额度是不会消耗的。", "quota-per-ask": "每一个提问消耗 {{count}} 点额度", "find-my-key": "找到我的 Key", - "provide-gpt4-key": "需提供您自己的,可以使用 GPT-4 的 key", "key-description": "一旦您提供了自己的 key,额度就不受限制了。", "endpoint-description": "可选的 endpoint 指向接口兼容的服务器或者网关。" },