优化
This commit is contained in:
@@ -31,7 +31,7 @@ export async function benchmarkAnalyzeStream(options) {
|
||||
let fullText = ''
|
||||
let conversationId = ''
|
||||
|
||||
return fetchEventSource(`${BASE_URL}/dify/benchmark/analyze`, {
|
||||
return fetchEventSource(`${BASE_URL}/dify/prompt/analysis`, {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
@@ -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