feat(model): 添加运营商列表功能

This commit is contained in:
2026-05-22 13:03:10 +08:00
parent 4d2d4fd93d
commit 0e2ac286e9
4 changed files with 60 additions and 0 deletions

View File

@@ -303,6 +303,13 @@ func GetModelTypesFromConfig() (res *dto.TypeItem, err error) {
}, nil
}
// GetOperatorList 获取运营商列表
func GetOperatorList() (res *dto.ListOperatorRes, err error) {
return &dto.ListOperatorRes{
List: public.OperatorList,
}, nil
}
func (s *modelService) UpdateChatModel(ctx context.Context, req *dto.UpdateChatModelReq) error {
// 校验新会话模型是否存在
newModel, err := dao.Model.GetByAcrossTenant(ctx, &entity.AsynchModel{