diff --git a/backend/modules/evaluation/domain/service/evaluator_impl.go b/backend/modules/evaluation/domain/service/evaluator_impl.go index e834075ca..e9ebce350 100644 --- a/backend/modules/evaluation/domain/service/evaluator_impl.go +++ b/backend/modules/evaluation/domain/service/evaluator_impl.go @@ -12,6 +12,7 @@ import ( "time" "github.com/bytedance/gg/gptr" + "github.com/samber/lo" "github.com/coze-dev/coze-loop/backend/infra/idgen" "github.com/coze-dev/coze-loop/backend/infra/middleware/session" @@ -613,7 +614,7 @@ func (e *EvaluatorServiceImpl) RunEvaluator(ctx context.Context, request *entity // 如果是预置评估器(Builtin),直接执行后续流程 // 如果不是预置评估器,则根据 space_id 判断是否当前空间的 Evaluator if !evaluatorDO.Builtin { - if evaluatorDO.SpaceID != request.SpaceID { + if evaluatorDO.SpaceID != request.SpaceID && lo.IsEmpty(evaluatorDO.BuiltinVisibleVersion) { // 历史预置评估器允许在途实验使用 return nil, errorx.NewByCode(errno.EvaluatorVersionNotFoundCode, errorx.WithExtraMsg("evaluator_version not found in current space")) } }