Commit Graph

1 Commits

Author SHA1 Message Date
王子天
75c8ea9270 fix(visualize): stop an invented enum value from aborting generation (#748)
Models regularly answer the analysis stage with a visual_genre or render_type that is not in the prompt's list ("simulation", "diagram"). Both fields are enums, so validation aborted the render over a label no downstream stage strictly needs.

VisualizationAnalysis now degrades an unknown genre to "" and an unknown render_type to svg, logging the rejected value. Putting it on the model rather than at the one parse site also covers render_type, which is required with no default.
2026-08-03 20:46:51 +08:00