Skip to content

Commit 558cee0

Browse files
committed
debug score
1 parent d40072d commit 558cee0

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

backend/modules/evaluation/application/wire_gen.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/modules/evaluation/domain/service/evaluator_impl.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,13 @@ func (e *EvaluatorServiceImpl) DebugEvaluator(ctx context.Context, evaluatorDO *
712712
}
713713
// 3. 执行Debug
714714
// exptSpaceID 目前不影响执行路径,预留透传用途
715-
return evaluatorSourceService.Debug(ctx, evaluatorDO, inputData, exptSpaceID)
715+
outputData, err := evaluatorSourceService.Debug(ctx, evaluatorDO, inputData, exptSpaceID)
716+
if err != nil {
717+
return nil, err
718+
}
719+
// 调试场景也统一对输出分数保留两位小数
720+
roundEvaluatorOutputScore(outputData)
721+
return outputData, nil
716722
}
717723

718724
func (e *EvaluatorServiceImpl) CheckNameExist(ctx context.Context, spaceID, evaluatorID int64, name string) (bool, error) {

0 commit comments

Comments
 (0)