fix: predict

This commit is contained in:
ulleo
2025-07-17 18:59:50 +08:00
parent 4550b41a99
commit e3ccf5edcc
5 changed files with 7 additions and 4 deletions
+2
View File
@@ -846,6 +846,8 @@ def run_analysis_or_predict_task(llm_service: LLMService, action_type: str, base
try:
llm_service.set_record(save_analysis_predict_record(llm_service.session, base_record, action_type))
yield orjson.dumps({'type': 'id', 'id': llm_service.get_record().id}).decode() + '\n\n'
if action_type == 'analysis':
# generate analysis
analysis_res = llm_service.generate_analysis()