feat: change deepseek api url - #13487
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates AI-related configuration and UI text by adjusting the default DeepSeek API base URL in the agent provider catalog and introducing a new localized message for AI Gateway content policy violations.
Changes:
- Update DeepSeek default
openai-completionsBaseURL in the agent provider catalog. - Add
AIProxyContentPolicyViolationi18n string across supported core UI languages.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| core/i18n/lang/zh.yaml | Adds AIProxyContentPolicyViolation Chinese (Simplified) translation. |
| core/i18n/lang/zh-Hant.yaml | Adds AIProxyContentPolicyViolation Chinese (Traditional) translation. |
| core/i18n/lang/tr.yaml | Adds AIProxyContentPolicyViolation Turkish translation. |
| core/i18n/lang/ru.yaml | Adds AIProxyContentPolicyViolation Russian translation. |
| core/i18n/lang/pt-BR.yaml | Adds AIProxyContentPolicyViolation Portuguese (Brazil) translation. |
| core/i18n/lang/ms.yaml | Adds AIProxyContentPolicyViolation Malay translation. |
| core/i18n/lang/lo.yaml | Adds AIProxyContentPolicyViolation Lao translation. |
| core/i18n/lang/ko.yaml | Adds AIProxyContentPolicyViolation Korean translation. |
| core/i18n/lang/ja.yaml | Adds AIProxyContentPolicyViolation Japanese translation. |
| core/i18n/lang/fa.yaml | Adds AIProxyContentPolicyViolation Persian translation. |
| core/i18n/lang/es-ES.yaml | Adds AIProxyContentPolicyViolation Spanish (Spain) translation. |
| core/i18n/lang/en.yaml | Adds AIProxyContentPolicyViolation English translation. |
| agent/app/provider/catalog.go | Changes DeepSeek default BaseURL for openai-completions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
54
to
57
| Key: "deepseek", DisplayName: "DeepSeek", Sort: 25, DefaultAPIType: "openai-completions", EnvKey: "DEEPSEEK_API_KEY", | ||
| APIConfigs: []APIConfig{ | ||
| {APIType: "openai-completions", BaseURL: "https://api.deepseek.com/v1"}, | ||
| {APIType: "openai-completions", BaseURL: "https://api.deepseek.com"}, | ||
| anthropicAPIConfig("https://api.deepseek.com/anthropic", AuthModeXAPIKey), |
Comment on lines
196
to
200
| ErrAIProxyModelGroupExists: "The model group name already exists." | ||
| ErrAIProxySensitiveGroupInUse: "The sensitive word group is in use and cannot be deleted." | ||
| ErrAIProxySensitiveGroupExists: "The sensitive word group name already exists." | ||
| AIProxyContentPolicyViolation: "Sorry, I cannot process this request because the content may not meet the content policy. Please revise it and try again." | ||
| AIBenchmarkRun: "Run AI benchmark" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.