feat: enhance provider configuration UX with custom URL support and API key links
- Add custom base URL input for custom providers - New "Request URL" field appears only in custom mode - Automatically syncs with ANTHROPIC_BASE_URL in config - Includes helpful amber-styled hint about Claude API compatibility - Add "Get API Key" links for non-official providers - Shows for cn_official, aggregator, and third_party categories - Links point to provider's official website - Styled as subtle helper text (text-xs, gray-500) - Positioned closely under API key input for better visual grouping - Improve UI consistency and hints - Unify all hint boxes to use amber color scheme (amber-50/amber-200/amber-600) - Update model placeholders to latest versions (GLM-4.5, GLM-4.5-Air) - Simplify provider names (remove version numbers and redundant text) - Update provider presets - GLM models: glm-4-plus → GLM-4.5, glm-4-flash → GLM-4.5-Air - Qwen models: qwen-coder-turbo → qwen3-coder-plus - Cleaner naming: "Claude官方登录" → "Claude官方", "DeepSeek v3.1" → "DeepSeek" - Fix Kimi model selector behavior - Remove API key requirement for displaying selector - Avoid showing duplicate model input fields for Kimi preset - Improve hint message clarity
This commit is contained in:
@@ -13,7 +13,7 @@ export interface ProviderPreset {
|
||||
|
||||
export const providerPresets: ProviderPreset[] = [
|
||||
{
|
||||
name: "Claude官方登录",
|
||||
name: "Claude官方",
|
||||
websiteUrl: "https://www.anthropic.com/claude-code",
|
||||
settingsConfig: {
|
||||
env: {},
|
||||
@@ -22,7 +22,7 @@ export const providerPresets: ProviderPreset[] = [
|
||||
category: "official",
|
||||
},
|
||||
{
|
||||
name: "DeepSeek v3.1",
|
||||
name: "DeepSeek",
|
||||
websiteUrl: "https://platform.deepseek.com",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
@@ -41,21 +41,21 @@ export const providerPresets: ProviderPreset[] = [
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://open.bigmodel.cn/api/anthropic",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
ANTHROPIC_MODEL: "glm-4-plus",
|
||||
ANTHROPIC_SMALL_FAST_MODEL: "glm-4-flash",
|
||||
ANTHROPIC_MODEL: "GLM-4.5",
|
||||
ANTHROPIC_SMALL_FAST_MODEL: "GLM-4.5-Air",
|
||||
},
|
||||
},
|
||||
category: "cn_official",
|
||||
},
|
||||
{
|
||||
name: "千问Qwen-Coder",
|
||||
name: "Qwen-Coder",
|
||||
websiteUrl: "https://bailian.console.aliyun.com",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://dashscope.aliyuncs.com/api/v2/apps/claude-code-proxy",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
ANTHROPIC_MODEL: "qwen-coder-turbo",
|
||||
ANTHROPIC_SMALL_FAST_MODEL: "qwen-coder-turbo",
|
||||
ANTHROPIC_MODEL: "qwen3-coder-plus",
|
||||
ANTHROPIC_SMALL_FAST_MODEL: "qwen3-coder-plus",
|
||||
},
|
||||
},
|
||||
category: "cn_official",
|
||||
|
||||
Reference in New Issue
Block a user