@@ -20,16 +20,34 @@ type Meta struct {
2020}
2121
2222var 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
214206func Get (key string ) (Meta , bool ) {
0 commit comments