Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/modules/evaluation/domain/service/evaluator_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"))
}
}
Expand Down
Loading