Avoid draft files in product-data generation
This commit is contained in:
@@ -1601,8 +1601,11 @@ class LocalCodingAgent:
|
||||
f'工具:{name};位置:line {exc.lineno} column {exc.colno};'
|
||||
f'原因:{exc.msg};参数片段:{preview!r}。'
|
||||
'请回复“继续”,我会要求模型重新生成合法 JSON 参数;'
|
||||
'对于大段 dataset draft,应分批或使用 draft_path/records_path,'
|
||||
'不要把大量带引号的文本一次性塞进工具参数。'
|
||||
'对于 product-data 生成数据,不要用 write_file 写大段 draft;'
|
||||
'应每批最多 8 条,直接用 python_exec 调用 '
|
||||
'skills/product-data/scripts/normalize_dataset_draft.py,'
|
||||
'通过 stdin 传入小批量 JSON,并把 normalize 结果追加到 '
|
||||
'scratchpad/normalized_records.jsonl。'
|
||||
) from exc
|
||||
if not isinstance(arguments, dict):
|
||||
raise OpenAICompatError(
|
||||
|
||||
Reference in New Issue
Block a user