Skip to content

Commit eda9641

Browse files
feat: change some prompt (#12135)
1 parent 6808e48 commit eda9641

22 files changed

Lines changed: 140 additions & 125 deletions

File tree

agent/app/provider/catalog.go

Lines changed: 103 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,34 @@ type Meta struct {
2020
}
2121

2222
var catalog = map[string]Meta{
23+
"custom": {
24+
Key: "custom",
25+
DisplayName: "Custom",
26+
Sort: 10,
27+
DefaultBaseURL: "",
28+
EnvKey: "CUSTOM_API_KEY",
29+
Enabled: true,
30+
Models: []Model{},
31+
},
2332
"ollama": {
2433
Key: "ollama",
2534
DisplayName: "Ollama",
26-
Sort: 10,
35+
Sort: 15,
2736
Enabled: true,
2837
},
38+
"vllm": {
39+
Key: "vllm",
40+
DisplayName: "vLLM",
41+
Sort: 20,
42+
DefaultBaseURL: "",
43+
EnvKey: "VLLM_API_KEY",
44+
Enabled: true,
45+
Models: []Model{},
46+
},
2947
"deepseek": {
3048
Key: "deepseek",
3149
DisplayName: "DeepSeek",
32-
Sort: 20,
50+
Sort: 25,
3351
DefaultBaseURL: "https://api.deepseek.com/v1",
3452
EnvKey: "DEEPSEEK_API_KEY",
3553
Enabled: true,
@@ -39,28 +57,94 @@ var catalog = map[string]Meta{
3957
{ID: "deepseek/deepseek-r1:1.5b", Name: "DeepSeek R1 1.5B"},
4058
},
4159
},
42-
"custom": {
43-
Key: "custom",
44-
DisplayName: "Custom",
60+
"bailian-coding-plan": {
61+
Key: "bailian-coding-plan",
62+
DisplayName: "阿里云百炼 Coding Plan",
4563
Sort: 30,
46-
DefaultBaseURL: "",
47-
EnvKey: "CUSTOM_API_KEY",
64+
DefaultBaseURL: "https://coding.dashscope.aliyuncs.com/v1",
65+
EnvKey: "QWEN_API_KEY",
4866
Enabled: true,
49-
Models: []Model{},
67+
Models: []Model{
68+
{ID: "bailian-coding-plan/qwen3.5-plus", Name: "Qwen3.5-Plus"},
69+
{ID: "bailian-coding-plan/qwen3-max", Name: "Qwen3-Max"},
70+
{ID: "bailian-coding-plan/qwen3-coder-next", Name: "Qwen3-Coder-Next"},
71+
{ID: "bailian-coding-plan/qwen3-coder-plus", Name: "Qwen3-Coder-Plus"},
72+
{ID: "bailian-coding-plan/minimax-m2.5", Name: "MiniMax M2.5"},
73+
{ID: "bailian-coding-plan/glm-5", Name: "GLM-5"},
74+
{ID: "bailian-coding-plan/kimi-k2.5", Name: "Kimi-k2.5"},
75+
{ID: "bailian-coding-plan/glm-4.7", Name: "GLM-4.7"},
76+
},
5077
},
51-
"vllm": {
52-
Key: "vllm",
53-
DisplayName: "vLLM",
54-
Sort: 31,
55-
DefaultBaseURL: "",
56-
EnvKey: "VLLM_API_KEY",
78+
"ark-coding-plan": {
79+
Key: "ark-coding-plan",
80+
DisplayName: "方舟 Coding Plan",
81+
Sort: 35,
82+
DefaultBaseURL: "https://ark.cn-beijing.volces.com/api/coding/v3",
83+
EnvKey: "ARK_API_KEY",
5784
Enabled: true,
58-
Models: []Model{},
85+
Models: []Model{
86+
{ID: "ark-coding-plan/doubao-seed-2.0-code", Name: "Doubao-Seed-2.0-Code"},
87+
{ID: "ark-coding-plan/doubao-seed-code", Name: "Doubao-Seed-Code"},
88+
{ID: "ark-coding-plan/kimi-k2.5", Name: "Kimi-K2.5"},
89+
{ID: "ark-coding-plan/glm-4.7", Name: "GLM-4.7"},
90+
{ID: "ark-coding-plan/deepseek-v3.2", Name: "DeepSeek-V3.2"},
91+
{ID: "ark-coding-plan/kimi-k2-thinking", Name: "Kimi-K2-thinking"},
92+
},
93+
},
94+
"zai": {
95+
Key: "zai",
96+
DisplayName: "Z.ai",
97+
Sort: 40,
98+
DefaultBaseURL: "https://open.bigmodel.cn/api/paas/v4",
99+
EnvKey: "ZAI_API_KEY",
100+
Enabled: true,
101+
Models: []Model{
102+
{ID: "zai/glm-5", Name: "GLM-5"},
103+
{ID: "zai/glm-4.7", Name: "GLM-4.7"},
104+
{ID: "zai/glm-4.7-flash", Name: "GLM-4.7-Flash"},
105+
{ID: "zai/glm-4.7-flashx", Name: "GLM-4.7-FlashX"},
106+
},
107+
},
108+
"minimax": {
109+
Key: "minimax",
110+
DisplayName: "MiniMax (CN)",
111+
Sort: 45,
112+
DefaultBaseURL: "https://api.minimaxi.com/anthropic",
113+
EnvKey: "MINIMAX_API_KEY",
114+
Enabled: true,
115+
Models: []Model{
116+
{ID: "minimax/MiniMax-M2.1", Name: "MiniMax M2.1"},
117+
{ID: "minimax/MiniMax-M2.1-lightning", Name: "MiniMax M2.1 Lightning"},
118+
},
119+
},
120+
"kimi": {
121+
Key: "kimi",
122+
DisplayName: "Kimi (CN)",
123+
Sort: 50,
124+
DefaultBaseURL: "https://api.moonshot.cn/v1",
125+
EnvKey: "KIMI_API_KEY",
126+
Enabled: true,
127+
Models: []Model{
128+
{ID: "kimi/kimi-k2.5", Name: "Kimi K2.5"},
129+
{ID: "kimi/kimi-k2-0905-preview", Name: "Kimi K2 0905 Preview"},
130+
{ID: "kimi/kimi-k2-thinking", Name: "Kimi K2 Thinking"},
131+
},
132+
},
133+
"kimi-coding": {
134+
Key: "kimi-coding",
135+
DisplayName: "Kimi Coding",
136+
Sort: 51,
137+
DefaultBaseURL: "https://api.kimi.com/coding/",
138+
EnvKey: "KIMI_API_KEY",
139+
Enabled: true,
140+
Models: []Model{
141+
{ID: "kimi-coding/k2p5", Name: "Kimi K2.5"},
142+
},
59143
},
60144
"openai": {
61145
Key: "openai",
62146
DisplayName: "OpenAI",
63-
Sort: 40,
147+
Sort: 55,
64148
DefaultBaseURL: "https://api.openai.com/v1",
65149
EnvKey: "OPENAI_API_KEY",
66150
Enabled: true,
@@ -76,7 +160,7 @@ var catalog = map[string]Meta{
76160
"anthropic": {
77161
Key: "anthropic",
78162
DisplayName: "Anthropic",
79-
Sort: 50,
163+
Sort: 60,
80164
DefaultBaseURL: "https://api.anthropic.com",
81165
EnvKey: "ANTHROPIC_API_KEY",
82166
Enabled: true,
@@ -91,7 +175,7 @@ var catalog = map[string]Meta{
91175
"gemini": {
92176
Key: "gemini",
93177
DisplayName: "Gemini",
94-
Sort: 60,
178+
Sort: 65,
95179
DefaultBaseURL: "https://generativelanguage.googleapis.com",
96180
EnvKey: "GEMINI_API_KEY",
97181
Enabled: true,
@@ -104,22 +188,10 @@ var catalog = map[string]Meta{
104188
{ID: "google/gemini-3-flash-preview", Name: "Gemini 3 Flash Preview"},
105189
},
106190
},
107-
"minimax": {
108-
Key: "minimax",
109-
DisplayName: "MiniMax (CN)",
110-
Sort: 70,
111-
DefaultBaseURL: "https://api.minimaxi.com/anthropic",
112-
EnvKey: "MINIMAX_API_KEY",
113-
Enabled: true,
114-
Models: []Model{
115-
{ID: "minimax/MiniMax-M2.1", Name: "MiniMax M2.1"},
116-
{ID: "minimax/MiniMax-M2.1-lightning", Name: "MiniMax M2.1 Lightning"},
117-
},
118-
},
119191
"moonshot": {
120192
Key: "moonshot",
121193
DisplayName: "Moonshot (Global)",
122-
Sort: 80,
194+
Sort: 70,
123195
DefaultBaseURL: "https://api.moonshot.ai/v1",
124196
EnvKey: "MOONSHOT_API_KEY",
125197
Enabled: true,
@@ -129,86 +201,6 @@ var catalog = map[string]Meta{
129201
{ID: "moonshot/kimi-k2-thinking", Name: "Kimi K2 Thinking"},
130202
},
131203
},
132-
"kimi": {
133-
Key: "kimi",
134-
DisplayName: "Kimi (CN)",
135-
Sort: 90,
136-
DefaultBaseURL: "https://api.moonshot.cn/v1",
137-
EnvKey: "KIMI_API_KEY",
138-
Enabled: true,
139-
Models: []Model{
140-
{ID: "kimi/kimi-k2.5", Name: "Kimi K2.5"},
141-
{ID: "kimi/kimi-k2-0905-preview", Name: "Kimi K2 0905 Preview"},
142-
{ID: "kimi/kimi-k2-thinking", Name: "Kimi K2 Thinking"},
143-
},
144-
},
145-
"zai": {
146-
Key: "zai",
147-
DisplayName: "Z.ai",
148-
Sort: 95,
149-
DefaultBaseURL: "https://open.bigmodel.cn/api/paas/v4",
150-
EnvKey: "ZAI_API_KEY",
151-
Enabled: true,
152-
Models: []Model{
153-
{ID: "zai/glm-5", Name: "GLM-5"},
154-
{ID: "zai/glm-4.7", Name: "GLM-4.7"},
155-
{ID: "zai/glm-4.7-flash", Name: "GLM-4.7-Flash"},
156-
{ID: "zai/glm-4.7-flashx", Name: "GLM-4.7-FlashX"},
157-
},
158-
},
159-
"kimi-coding": {
160-
Key: "kimi-coding",
161-
DisplayName: "Kimi Coding",
162-
Sort: 100,
163-
DefaultBaseURL: "https://api.kimi.com/coding/",
164-
EnvKey: "KIMI_API_KEY",
165-
Enabled: true,
166-
Models: []Model{
167-
{ID: "kimi-coding/k2p5", Name: "Kimi K2.5"},
168-
},
169-
},
170-
"bailian-coding-plan": {
171-
Key: "bailian-coding-plan",
172-
DisplayName: "阿里云百炼 Coding Plan",
173-
Sort: 11,
174-
DefaultBaseURL: "https://coding.dashscope.aliyuncs.com/v1",
175-
EnvKey: "QWEN_API_KEY",
176-
Enabled: true,
177-
Models: []Model{
178-
{ID: "bailian-coding-plan/qwen3.5-plus", Name: "Qwen3.5-Plus"},
179-
{ID: "bailian-coding-plan/qwen3-max", Name: "Qwen3-Max"},
180-
{ID: "bailian-coding-plan/qwen3-coder-next", Name: "Qwen3-Coder-Next"},
181-
{ID: "bailian-coding-plan/qwen3-coder-plus", Name: "Qwen3-Coder-Plus"},
182-
{ID: "bailian-coding-plan/minimax-m2.5", Name: "MiniMax M2.5"},
183-
{ID: "bailian-coding-plan/glm-5", Name: "GLM-5"},
184-
{ID: "bailian-coding-plan/kimi-k2.5", Name: "Kimi-k2.5"},
185-
{ID: "bailian-coding-plan/glm-4.7", Name: "GLM-4.7"},
186-
},
187-
},
188-
"ark-coding-plan": {
189-
Key: "ark-coding-plan",
190-
DisplayName: "方舟 Coding Plan",
191-
Sort: 12,
192-
DefaultBaseURL: "https://ark.cn-beijing.volces.com/api/coding/v3",
193-
EnvKey: "ARK_API_KEY",
194-
Enabled: true,
195-
Models: []Model{
196-
{ID: "ark-coding-plan/doubao-seed-2.0-code", Name: "Doubao-Seed-2.0-Code"},
197-
{ID: "ark-coding-plan/doubao-seed-code", Name: "Doubao-Seed-Code"},
198-
{ID: "ark-coding-plan/kimi-k2.5", Name: "Kimi-K2.5"},
199-
{ID: "ark-coding-plan/glm-4.7", Name: "GLM-4.7"},
200-
{ID: "ark-coding-plan/deepseek-v3.2", Name: "DeepSeek-V3.2"},
201-
{ID: "ark-coding-plan/kimi-k2-thinking", Name: "Kimi-K2-thinking"},
202-
},
203-
},
204-
"qwen": {
205-
Key: "qwen",
206-
DisplayName: "Qwen",
207-
Sort: 110,
208-
DefaultBaseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1",
209-
EnvKey: "QWEN_API_KEY",
210-
Enabled: false,
211-
},
212204
}
213205

214206
func Get(key string) (Meta, bool) {

agent/i18n/lang/en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ErrAgentApiKeyRequired: 'API key is required'
5050
ErrAgentComposeRequired: 'Compose content is required'
5151
ErrAgentIDRequired: 'Agent ID is required'
5252
ErrAgentAccountIDRequired: 'Account ID is required'
53-
ErrAgentLimitReached: 'In Community Edition, at most {{ .max }} AI agents can be created'
53+
ErrAgentLimitReached: 'Community Edition supports up to {{ .max }} AI agents. Upgrade to Professional Edition for unlimited agents'
5454

5555
#backup
5656
Localhost: 'Local'

agent/i18n/lang/es-ES.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'Clave API requerida'
4545
ErrAgentComposeRequired: 'Contenido compose requerido'
4646
ErrAgentIDRequired: 'ID de agente requerido'
4747
ErrAgentAccountIDRequired: 'ID de cuenta requerido'
48-
ErrAgentLimitReached: 'En la edición Community, solo se pueden crear hasta {{ .max }} agentes de IA'
48+
ErrAgentLimitReached: 'La edición Community admite hasta {{ .max }} agentes de IA. Actualice a la edición Professional para eliminar el límite'
4949
Localhost: 'Máquina local'
5050
ErrBackupInUsed: 'Cuenta de respaldo en uso por tarea programada'
5151
ErrBackupCheck: 'Conexión de respaldo falló: {{ .err }}'

agent/i18n/lang/ja.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'APIキーが必要です'
4545
ErrAgentComposeRequired: 'Composeが必要です'
4646
ErrAgentIDRequired: 'エージェントIDが必要です'
4747
ErrAgentAccountIDRequired: 'アカウントIDが必要です'
48-
ErrAgentLimitReached: 'Community Edition では AI エージェントを最大 {{ .max }} 件まで作成できます'
48+
ErrAgentLimitReached: 'Community Edition では AI エージェントを最大 {{ .max }} 件まで作成できます。Professional Edition にアップグレードすると数の制限はありません'
4949
Localhost: 'ローカルマシン'
5050
ErrBackupInUsed: 'バックアップアカウントがスケジュールで使用中'
5151
ErrBackupCheck: '接続テストに失敗しました: {{ .err }}'

agent/i18n/lang/ko.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'API 키 필요'
4545
ErrAgentComposeRequired: 'Compose 내용 필요'
4646
ErrAgentIDRequired: '에이전트 ID 필요'
4747
ErrAgentAccountIDRequired: '계정 ID 필요'
48-
ErrAgentLimitReached: '커뮤니티 에디션에서는 AI 에이전트를 최대 {{ .max }}개까지만 생성할 수 있습니다'
48+
ErrAgentLimitReached: '커뮤니티 에디션에서는 AI 에이전트를 최대 {{ .max }}개까지 생성할 수 있으며, Professional 에디션으로 업그레이드하면 수량 제한이 없습니다'
4949
Localhost: '로컬 머신'
5050
ErrBackupInUsed: '백업 계정이 예약에 사용 중'
5151
ErrBackupCheck: '연결 테스트 실패: {{ .err }}'

agent/i18n/lang/ms.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'Kunci API diperlukan'
4545
ErrAgentComposeRequired: 'Kandungan compose diperlukan'
4646
ErrAgentIDRequired: 'ID ejen diperlukan'
4747
ErrAgentAccountIDRequired: 'ID akaun diperlukan'
48-
ErrAgentLimitReached: 'Dalam edisi Community, maksimum {{ .max }} ejen AI sahaja boleh dicipta'
48+
ErrAgentLimitReached: 'Edisi Community menyokong sehingga {{ .max }} ejen AI. Naik taraf ke edisi Professional untuk tiada had bilangan'
4949
Localhost: 'Mesin Tempatan'
5050
ErrBackupInUsed: 'Akaun sandaran sedang digunakan oleh tugas'
5151
ErrBackupCheck: 'Ujian sambungan gagal: {{ .err }}'

agent/i18n/lang/pt-BR.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'Chave API obrigatória'
4545
ErrAgentComposeRequired: 'Conteúdo de compose obrigatório'
4646
ErrAgentIDRequired: 'ID do agente obrigatório'
4747
ErrAgentAccountIDRequired: 'ID da conta obrigatório'
48-
ErrAgentLimitReached: 'Na edição Community, é possível criar no máximo {{ .max }} agentes de IA'
48+
ErrAgentLimitReached: 'A edição Community suporta até {{ .max }} agentes de IA. Atualize para a edição Professional para remover o limite'
4949
Localhost: 'Máquina Local'
5050
ErrBackupInUsed: 'Conta de backup em uso por tarefa'
5151
ErrBackupCheck: 'Teste de conexão falhou: {{ .err }}'

agent/i18n/lang/ru.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'Нужен API-ключ'
4545
ErrAgentComposeRequired: 'Нужен compose'
4646
ErrAgentIDRequired: 'Нужен ID агента'
4747
ErrAgentAccountIDRequired: 'Нужен ID аккаунта'
48-
ErrAgentLimitReached: 'В Community Edition можно создать не более {{ .max }} AI-агентов'
48+
ErrAgentLimitReached: 'Community Edition поддерживает до {{ .max }} AI-агентов. Перейдите на Professional Edition, чтобы снять ограничение'
4949
Localhost: 'Локальная машина'
5050
ErrBackupInUsed: 'Аккаунт бэкапа занят задачей'
5151
ErrBackupCheck: 'Проверка подключения не удалась: {{ .err }}'

agent/i18n/lang/tr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'API anahtarı gerekli'
4545
ErrAgentComposeRequired: 'Compose içeriği gerekli'
4646
ErrAgentIDRequired: 'Ajans ID gerekli'
4747
ErrAgentAccountIDRequired: 'Hesap ID gerekli'
48-
ErrAgentLimitReached: 'Community sürümünde en fazla {{ .max }} AI ajanı oluşturulabilir'
48+
ErrAgentLimitReached: 'Community sürümü en fazla {{ .max }} AI ajanını destekler. Sınırı kaldırmak için Professional sürüme yükseltin'
4949
Localhost: 'Yerel Makine'
5050
ErrBackupInUsed: 'Yedek hesabı görevde kullanılıyor'
5151
ErrBackupCheck: 'Bağlantı testi başarısız: {{ .err }}'

agent/i18n/lang/zh-Hant.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ErrAgentApiKeyRequired: 'API Key 不可為空,請重試'
4545
ErrAgentComposeRequired: '自訂編排內容不可為空,請重試'
4646
ErrAgentIDRequired: '智能體 ID 不可為空,請重試'
4747
ErrAgentAccountIDRequired: '帳號 ID 不可為空,請重試'
48-
ErrAgentLimitReached: '社群版最多只能建立 {{ .max }} 個智能體'
48+
ErrAgentLimitReached: '社群版最多支援建立 {{ .max }} 個智能體,升級至專業版則無數量限制'
4949
Localhost: '本機'
5050
ErrBackupInUsed: '此備份帳號已在排程任務中使用,無法刪除'
5151
ErrBackupCheck: '備份帳號測試連線失敗{{ .err }}'

0 commit comments

Comments
 (0)