放弃了content_gen内的数据验证模块
This commit is contained in:
parent
ff3159f454
commit
21f3c15a32
@ -321,8 +321,8 @@ class ContentGenerator:
|
|||||||
parsed_data = self.split_content(full_response)
|
parsed_data = self.split_content(full_response)
|
||||||
|
|
||||||
# 验证内容格式并修复
|
# 验证内容格式并修复
|
||||||
validated_data = self._validate_and_fix_data(parsed_data)
|
# validated_data = self._validate_and_fix_data(parsed_data)
|
||||||
|
validated_data = parsed_data
|
||||||
# 创建结果文件路径
|
# 创建结果文件路径
|
||||||
result_path = os.path.join(output_dir, f"{date_time}.json")
|
result_path = os.path.join(output_dir, f"{date_time}.json")
|
||||||
os.makedirs(os.path.dirname(result_path), exist_ok=True)
|
os.makedirs(os.path.dirname(result_path), exist_ok=True)
|
||||||
@ -359,6 +359,7 @@ class ContentGenerator:
|
|||||||
返回:
|
返回:
|
||||||
修复后的数据
|
修复后的数据
|
||||||
"""
|
"""
|
||||||
|
return data
|
||||||
fixed_data = []
|
fixed_data = []
|
||||||
|
|
||||||
# 如果数据是列表
|
# 如果数据是列表
|
||||||
@ -491,7 +492,8 @@ class ContentGenerator:
|
|||||||
result_data = self.split_content(full_response)
|
result_data = self.split_content(full_response)
|
||||||
|
|
||||||
# 验证并修复数据
|
# 验证并修复数据
|
||||||
fixed_data = self._validate_and_fix_data(result_data)
|
# fixed_data = self._validate_and_fix_data(result_data)
|
||||||
|
fixed_data = result_data
|
||||||
|
|
||||||
self.logger.info(f"成功生成并修复海报配置数据,包含 {len(fixed_data)} 个项目")
|
self.logger.info(f"成功生成并修复海报配置数据,包含 {len(fixed_data)} 个项目")
|
||||||
return fixed_data
|
return fixed_data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user