-
Notifications
You must be signed in to change notification settings - Fork 852
Correct LLM provider naming for OpenAI/Anthropic API modes #928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,7 +73,9 @@ | |
| "ChatGPT (Web, GPT-4)": "ChatGPT (Web, GPT-4)", | ||
| "Bing (Web, GPT-4)": "Bing (Web, GPT-4)", | ||
| "ChatGPT (GPT-3.5-turbo)": "ChatGPT (GPT-3.5-turbo)", | ||
| "OpenAI (GPT-3.5-turbo)": "OpenAI (GPT-3.5-turbo)", | ||
| "ChatGPT (GPT-4-8k)": "ChatGPT (GPT-4-8k)", | ||
| "OpenAI (GPT-4-8k)": "OpenAI (GPT-4-8k)", | ||
| "ChatGPT (GPT-4-32k)": "ChatGPT (GPT-4-32k)", | ||
| "GPT-3.5": "GPT-3.5", | ||
| "Custom Model": "Custom Model", | ||
|
|
@@ -132,7 +134,8 @@ | |
| "Generating...": "Generating...", | ||
| "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", | ||
| "Hide context menu of this extension": "Hide context menu of this extension", | ||
| "Custom Claude API Url": "Custom Claude API Url", | ||
| "Custom Anthropic API Url": "Custom Anthropic API Url", | ||
| "Anthropic API Key": "Anthropic API Key", | ||
|
Comment on lines
+137
to
+138
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# 1. Confirm no source file still references the old locale key
echo "=== Old key references in source ==="
rg --type=js --type=jsx -n "Custom Claude API Url" || echo "None found"
# 2. Confirm no locale file still has the old key
echo ""
echo "=== Locale files retaining old key ==="
rg -n "Custom Claude API Url" --glob="**/main.json" || echo "None found"
# 3. Confirm all locale files have the new keys
echo ""
echo "=== Locale files MISSING new keys ==="
fd -e json "main.json" --search-path src/_locales --exec sh -c \
'grep -q "Custom Anthropic API Url" "$1" || echo "Missing Custom Anthropic API Url: $1"; \
grep -q "Anthropic API Key" "$1" || echo "Missing Anthropic API Key: $1"' _ {}
# 4. Confirm no remaining references to generateAnswersWithChatgptApiCompat
echo ""
echo "=== Stale generateAnswersWithChatgptApiCompat references ==="
rg -n "generateAnswersWithChatgptApiCompat" || echo "None found"Repository: ChatGPTBox-dev/chatGPTBox Length of output: 324 Key rename in Per coding guidelines, keys in Verification confirms the migration is complete across all in-tree files:
While the implementation is comprehensive and correct, the guideline exists to prevent breaking changes in localization keys. Future PRs should add new keys alongside old ones to maintain backward compatibility. 🤖 Prompt for AI Agents |
||
| "Cancel": "Cancel", | ||
| "Name is required": "Name is required", | ||
| "Prompt template should include {{selection}}": "Prompt template should include {{selection}}", | ||
|
|
@@ -159,5 +162,41 @@ | |
| "Type": "Type", | ||
| "Mode": "Mode", | ||
| "Custom": "Custom", | ||
| "Crop Text to ensure the input tokens do not exceed the model's limit": "Crop Text to ensure the input tokens do not exceed the model's limit" | ||
| "Crop Text to ensure the input tokens do not exceed the model's limit": "Crop Text to ensure the input tokens do not exceed the model's limit", | ||
| "OpenAI (API)": "OpenAI (API)", | ||
| "Anthropic (API)": "Anthropic (API)", | ||
| "Azure OpenAI (API)": "Azure OpenAI (API)", | ||
| "OpenAI (GPT-3.5-turbo-16k)": "OpenAI (GPT-3.5-turbo-16k)", | ||
| "OpenAI (GPT-4o, 128k)": "OpenAI (GPT-4o, 128k)", | ||
| "OpenAI (GPT-4o mini)": "OpenAI (GPT-4o mini)", | ||
| "OpenAI (GPT-4-Turbo 128k)": "OpenAI (GPT-4-Turbo 128k)", | ||
| "OpenAI (GPT-4-Turbo 128k Preview)": "OpenAI (GPT-4-Turbo 128k Preview)", | ||
| "OpenAI (GPT-4-Turbo 128k 1106 Preview)": "OpenAI (GPT-4-Turbo 128k 1106 Preview)", | ||
| "OpenAI (GPT-4-Turbo 128k 0125 Preview)": "OpenAI (GPT-4-Turbo 128k 0125 Preview)", | ||
| "OpenAI (GPT-5 latest)": "OpenAI (GPT-5 latest)", | ||
| "OpenAI (GPT-5.1 latest)": "OpenAI (GPT-5.1 latest)", | ||
| "OpenAI (GPT-4.1)": "OpenAI (GPT-4.1)", | ||
| "OpenAI (GPT-4.1 mini)": "OpenAI (GPT-4.1 mini)", | ||
| "OpenAI (GPT-4.1 nano)": "OpenAI (GPT-4.1 nano)", | ||
| "Anthropic (Claude 3 Haiku)": "Anthropic (Claude 3 Haiku)", | ||
| "Anthropic (Claude 3.5 Haiku)": "Anthropic (Claude 3.5 Haiku)", | ||
| "Anthropic (Claude 3.7 Sonnet)": "Anthropic (Claude 3.7 Sonnet)", | ||
| "Anthropic (Claude Opus 4)": "Anthropic (Claude Opus 4)", | ||
| "Anthropic (Claude Opus 4.1)": "Anthropic (Claude Opus 4.1)", | ||
| "Anthropic (Claude Opus 4.5)": "Anthropic (Claude Opus 4.5)", | ||
| "Anthropic (Claude Opus 4.6)": "Anthropic (Claude Opus 4.6)", | ||
| "Anthropic (Claude Sonnet 4)": "Anthropic (Claude Sonnet 4)", | ||
| "Anthropic (Claude Sonnet 4.5)": "Anthropic (Claude Sonnet 4.5)", | ||
| "Anthropic (Claude Haiku 4.5)": "Anthropic (Claude Haiku 4.5)", | ||
| "OpenAI (GPT-3.5-turbo 1106)": "OpenAI (GPT-3.5-turbo 1106)", | ||
| "OpenAI (GPT-3.5-turbo 0125)": "OpenAI (GPT-3.5-turbo 0125)", | ||
| "OpenAI (GPT-4-8k 0613)": "OpenAI (GPT-4-8k 0613)", | ||
| "Azure OpenAI": "Azure OpenAI", | ||
| "OpenAI (GPT-5)": "OpenAI (GPT-5)", | ||
| "OpenAI (GPT-5.1)": "OpenAI (GPT-5.1)", | ||
| "OpenAI (GPT-5.2 latest)": "OpenAI (GPT-5.2 latest)", | ||
| "OpenAI (GPT-5.2)": "OpenAI (GPT-5.2)", | ||
| "OpenAI (GPT-5.3 latest)": "OpenAI (GPT-5.3 latest)", | ||
| "OpenAI (GPT-5.4)": "OpenAI (GPT-5.4)", | ||
| "Anthropic (Claude Sonnet 4.6)": "Anthropic (Claude Sonnet 4.6)" | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.