fix:dms api
This commit is contained in:
@@ -82,6 +82,9 @@ class DataGenerator:
|
||||
llm_data = self._generate_with_llm(schema, llm_service, context_name, operation_id)
|
||||
if llm_data is not None:
|
||||
self.logger.debug(f"{log_prefix}LLM successfully generated data for{context_log}")
|
||||
# 🔑 关键修复:LLM生成的数据也需要井数据增强
|
||||
if self.well_data_manager and isinstance(llm_data, dict):
|
||||
llm_data = self.well_data_manager.enhance_data_with_well_values(llm_data)
|
||||
return llm_data
|
||||
except Exception as e:
|
||||
self.logger.debug(f"{log_prefix}LLM generation failed for{context_log}: {e}, falling back to traditional generation")
|
||||
|
||||
Reference in New Issue
Block a user