增强供应商配置:添加网站地址字段和智能推测功能

- 添加websiteUrl可选字段到Provider类型
- 实现API地址到网站地址的自动推测逻辑(去除api.前缀)
- 在添加/编辑供应商表单中增加网站地址字段
- 供应商列表智能显示:有网址显示可点击链接,无网址显示API地址
- 提升用户体验:避免点击API端点地址导致的错误页面
This commit is contained in:
farion1231
2025-08-06 10:09:58 +08:00
parent 4540ad613f
commit 71a8fd166f
7 changed files with 126 additions and 21 deletions

View File

@@ -4,6 +4,7 @@ export interface Provider {
apiUrl: string
apiKey: string
model?: string
websiteUrl?: string
}
export interface AppConfig {