Skip to content

Commit 59f5b50

Browse files
Correct LLM provider naming for OpenAI/Anthropic API modes
- ChatGPT (API) -> OpenAI (API) - ChatGPT (Azure API) -> Azure OpenAI (API) - Claude.ai (API) -> Anthropic (API) - Rename generateAnswersWithChatgptApi -> generateAnswersWithOpenAiApi - Rename config keys: claudeApiKey -> anthropicApiKey, customClaudeApiUrl -> customAnthropicApiUrl - Add migration logic for existing user settings - Add localized translations for 'Anthropic API Key' OpenAI and Anthropic are the commonly used terms for API access. Product names like ChatGPT and Claude are appropriate for web interfaces, but less precise for API settings.
1 parent 9ed7fa8 commit 59f5b50

26 files changed

Lines changed: 128 additions & 96 deletions

src/_locales/de/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Generieren...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "Moonshot-Token erforderlich, bitte zuerst bei https://kimi.com anmelden und dann auf die Schaltfläche Wiederholen klicken",
135135
"Hide context menu of this extension": "Kontextmenü dieser Erweiterung ausblenden",
136-
"Custom Claude API Url": "Benutzerdefinierte Claude-API-URL",
136+
"Custom Anthropic API Url": "Benutzerdefinierte Anthropic-API-URL",
137+
"Anthropic API Key": "Anthropic-API-Schlüssel",
137138
"Cancel": "Abbrechen",
138139
"Name is required": "Name ist erforderlich",
139140
"Prompt template should include {{selection}}": "Die Vorlage sollte {{selection}} enthalten",

src/_locales/en/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Generating...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "moonshot token required, please login at https://kimi.com first, and then click the retry button",
135135
"Hide context menu of this extension": "Hide context menu of this extension",
136-
"Custom Claude API Url": "Custom Claude API Url",
136+
"Custom Anthropic API Url": "Custom Anthropic API Url",
137+
"Anthropic API Key": "Anthropic API Key",
137138
"Cancel": "Cancel",
138139
"Name is required": "Name is required",
139140
"Prompt template should include {{selection}}": "Prompt template should include {{selection}}",

src/_locales/es/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Generando...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "se requiere un token de moonshot, por favor inicie sesión en https://kimi.com primero, y luego haga clic en el botón Reintentar",
135135
"Hide context menu of this extension": "Ocultar menú contextual de esta extensión",
136-
"Custom Claude API Url": "URL personalizada de la API de Claude",
136+
"Custom Anthropic API Url": "URL personalizada de la API de Anthropic",
137+
"Anthropic API Key": "Clave API de Anthropic",
137138
"Cancel": "Cancelar",
138139
"Name is required": "Se requiere un nombre",
139140
"Prompt template should include {{selection}}": "La plantilla de sugerencias debe incluir {{selection}}",

src/_locales/fr/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Génération...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "jeton moonshot requis, veuillez vous connecter d'abord sur https://kimi.com, puis cliquez sur le bouton Réessayer",
135135
"Hide context menu of this extension": "Masquer le menu contextuel de cette extension",
136-
"Custom Claude API Url": "URL API Claude personnalisée",
136+
"Custom Anthropic API Url": "URL API Anthropic personnalisée",
137+
"Anthropic API Key": "Clé API Anthropic",
137138
"Cancel": "Annuler",
138139
"Name is required": "Le nom est requis",
139140
"Prompt template should include {{selection}}": "Le modèle de suggestion doit inclure {{selection}}",

src/_locales/in/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Menghasilkan...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "diperlukan token moonshot, silakan masuk di https://kimi.com terlebih dahulu, lalu klik tombol coba lagi",
135135
"Hide context menu of this extension": "Sembunyikan menu konteks ekstensi ini",
136-
"Custom Claude API Url": "URL API Claude Kustom",
136+
"Custom Anthropic API Url": "URL API Anthropic Kustom",
137+
"Anthropic API Key": "Kunci API Anthropic",
137138
"Cancel": "Batal",
138139
"Name is required": "Nama diperlukan",
139140
"Prompt template should include {{selection}}": "Template prompt harus mencakup {{selection}}",

src/_locales/it/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Generazione...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "richiesto token moonshot, effettua il login su https://kimi.com prima, quindi fai clic sul pulsante Riprova",
135135
"Hide context menu of this extension": "Nascondi il menu contestuale di questa estensione",
136-
"Custom Claude API Url": "URL API Claude personalizzato",
136+
"Custom Anthropic API Url": "URL API Anthropic personalizzato",
137+
"Anthropic API Key": "Chiave API Anthropic",
137138
"Cancel": "Annulla",
138139
"Name is required": "Il nome è obbligatorio",
139140
"Prompt template should include {{selection}}": "Il modello di prompt dovrebbe includere {{selection}}",

src/_locales/ja/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "生成中...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "moonshotトークンが必要です。最初に https://kimi.com にログインしてから、再試行ボタンをクリックしてください",
135135
"Hide context menu of this extension": "この拡張機能のコンテキストメニューを非表示",
136-
"Custom Claude API Url": "カスタムClaude APIのURL",
136+
"Custom Anthropic API Url": "カスタムAnthropic APIのURL",
137+
"Anthropic API Key": "Anthropic API キー",
137138
"Cancel": "キャンセル",
138139
"Name is required": "名前は必須です",
139140
"Prompt template should include {{selection}}": "プロンプトテンプレートには {{selection}} を含める必要があります",

src/_locales/ko/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "생성 중...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "moonshot 토큰이 필요합니다. https://kimi.com 에서 로그인한 다음 재시도 버튼을 클릭하세요.",
135135
"Hide context menu of this extension": "이 확장 프로그램의 컨텍스트 메뉴 숨기기",
136-
"Custom Claude API Url": "사용자 정의 Claude API URL",
136+
"Custom Anthropic API Url": "사용자 정의 Anthropic API URL",
137+
"Anthropic API Key": "Anthropic API 키",
137138
"Cancel": "취소",
138139
"Name is required": "이름은 필수입니다",
139140
"Prompt template should include {{selection}}": "프롬프트 템플릿에는 {{selection}} 이 포함되어야 합니다",

src/_locales/pt/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Gerando...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "token moonshot necessário, faça login em https://kimi.com primeiro e depois clique no botão de tentar novamente",
135135
"Hide context menu of this extension": "Ocultar menu de contexto desta extensão",
136-
"Custom Claude API Url": "URL da API Personalizada do Claude",
136+
"Custom Anthropic API Url": "URL da API Personalizada do Anthropic",
137+
"Anthropic API Key": "Chave API Anthropic",
137138
"Cancel": "Cancelar",
138139
"Name is required": "Nome é obrigatório",
139140
"Prompt template should include {{selection}}": "O modelo de prompt deve incluir {{selection}}",

src/_locales/ru/main.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@
133133
"Generating...": "Генерация...",
134134
"moonshot token required, please login at https://kimi.com first, and then click the retry button": "требуется токен moonshot, пожалуйста, сначала войдите на https://kimi.com, а затем нажмите кнопку повтора",
135135
"Hide context menu of this extension": "Скрыть контекстное меню этого расширения",
136-
"Custom Claude API Url": "Пользовательский URL API Claude",
136+
"Custom Anthropic API Url": "Пользовательский URL API Anthropic",
137+
"Anthropic API Key": "Ключ API Anthropic",
137138
"Cancel": "Отмена",
138139
"Name is required": "Имя обязательно",
139140
"Prompt template should include {{selection}}": "Шаблон запроса должен включать {{selection}}",

0 commit comments

Comments
 (0)