feat: 优化 Model 连接测试,支持阿里云 DashScope
- 添加阿里云 provider 支持 - 添加连接超时 (10s) - 优化 URL 构建逻辑 - 默认状态改为 inactive - 添加详细日志 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -170,11 +170,11 @@ func main() {
|
||||
modelGroup := r.Group("/model")
|
||||
{
|
||||
modelGroup.GET("/list", modelHandler.List)
|
||||
modelGroup.GET("/:id", modelHandler.GetByID)
|
||||
modelGroup.POST("/test", modelHandler.Test)
|
||||
modelGroup.POST("/add", modelHandler.Create)
|
||||
modelGroup.GET("/:id", modelHandler.GetByID)
|
||||
modelGroup.PUT("/:id", modelHandler.Update)
|
||||
modelGroup.DELETE("/:id", modelHandler.Delete)
|
||||
modelGroup.POST("/test", modelHandler.Test)
|
||||
}
|
||||
|
||||
// 系统信息模块
|
||||
|
||||
Reference in New Issue
Block a user