优化
This commit is contained in:
@@ -348,10 +348,10 @@ public class DifyServiceImpl implements DifyService {
|
||||
String difyUserId = "user-" + userId;
|
||||
|
||||
return Mono.fromCallable(() -> {
|
||||
// 1. 获取积分配置
|
||||
// 1. 获取积分配置(复用提示词分析配置)
|
||||
AiServiceConfigDO config = pointsService.getConfig(
|
||||
AiPlatformEnum.DIFY.getPlatform(),
|
||||
AiModelTypeEnum.BENCHMARK_ANALYZE.getModelCode());
|
||||
AiModelTypeEnum.PROMPT_ANALYSIS.getModelCode());
|
||||
|
||||
// 2. 预检积分
|
||||
pointsService.checkPoints(userId, config.getConsumePoints());
|
||||
|
||||
Reference in New Issue
Block a user