python_eval: 생성 이미지 링크를 답변에 포함하라는 안내를 결과에 추가

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Sonnet 5.5 committed 2026-10-17 12:17:17 +09:00
1 parent 74481dbe29
commit 320b3887a2
1 file changed
+3
+3
View File
@@ -229,6 +229,9 @@ export const pythonEvalTool = {
: `[${path.basename(f)}](/api/files/${f})`;
}).join('\n');
parts.push(`[생성된 파일]\n${links}`);
// 이미지가 비전 모델에 임베드되면 모델이 "이미 화면에 보인다"고 오해하고 링크를 빼먹는다(2026-10-17 실측:
// 차트가 만들어졌는데 답변에 링크가 없어 사용자 화면에 이미지가 안 나옴).
if (/!\[/.test(links)) parts.push('[안내] 위 ![...](...) 이미지 링크를 최종 답변에 그대로 포함해야 사용자 화면에 차트가 표시됩니다.');
}
if (sandboxNote) parts.push(`[참고] ${sandboxNote}`);
parts.push(`[exit ${result.exitCode}]`);