fix: escape {field_N} braces in prompt templates to prevent .format() KeyError
$F{field_1} literal text in skeleton_generation/refine_layout/field_mapping
prompts was being parsed as Python .format() placeholder, causing KeyError
on every image-based initial_generation request. Escaped with double braces
so .format() outputs literal {field_1} for the LLM.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
- 表头行的坐标直接使用采样坐标中 header_row 对应列的 x, y, width, height。
|
||||
- 数据行:根据 first_data_row 的坐标模式,向下插值生成剩余数据行(每行 y 递增行高)。
|
||||
- 标题行(如有)和表尾行:保持其在骨架中的 y 位置大致不变,但调整 x 和 width 与列的采样坐标对齐。
|
||||
- 不要修改字段名(保持 $F{field_N} 占位名不变)。
|
||||
- 不要修改字段名(保持 $F{{field_N}} 占位名不变)。
|
||||
- 不要修改 band 结构。
|
||||
- 确保 JRXML 兼容 JasperReports 7.0.6。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user