[BUG] 使用 structured_outputs_internally 时 Gradio 会渲染原始 JSON
作者: joejoe2创建于 2025年5月29日更新于 2026年9月25日
标签enhancement
描述错误 当 use_structured_outputs_internally=True 时, gradio 会直接显示原始 JSON,如下所示: { "thought": "xxxx", "code": "final_answer(x)" } 可重现错误的代码 产生您的错误的最简单代码片段。
内容来源: huggingface/smolagents