feat: 引用系统模型端点 referenceSystemModel
用户引用系统模型只存 apiKey/enabled/chatModel,配置实时跟随系统模型(不拷贝) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,11 @@ func (c *modelManage) CreateModel(ctx context.Context, req *dto.CreateModelManag
|
||||
return service.ModelManage.Create(ctx, req)
|
||||
}
|
||||
|
||||
// ReferenceModel 引用系统模型
|
||||
func (c *modelManage) ReferenceModel(ctx context.Context, req *dto.ReferenceSystemModelReq) (res *dto.ReferenceSystemModelRes, err error) {
|
||||
return service.ModelManage.ReferenceSystemModel(ctx, req)
|
||||
}
|
||||
|
||||
// UpdateModel 更改配置
|
||||
func (c *modelManage) UpdateModel(ctx context.Context, req *dto.UpdateModelManageReq) (res *dto.GetModelManageRes, err error) {
|
||||
return service.ModelManage.Update(ctx, req)
|
||||
|
||||
Reference in New Issue
Block a user