Skip to content

feat(generator): strictly regulate the syntax generation of GPT-Vis#959

Open
ninelcc336 wants to merge 2 commits into
aifrom
feat-generator
Open

feat(generator): strictly regulate the syntax generation of GPT-Vis#959
ninelcc336 wants to merge 2 commits into
aifrom
feat-generator

Conversation

@ninelcc336
Copy link
Copy Markdown
Contributor

  • 限制 LLM 输出的变量名必须为 visSyntax
  • 约束 LLM 输出 visSyntax 内容的缩进格式
image

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

🎊 PR Preview 16a0c51 has been successfully built and deployed to https://antvis-AVA-preview-pr-959.surge.sh

🕐 Build time: 0.042s

🤖 By surge-preview

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the GPT-Vis generation instructions and HTML template in src/visualization/generator.ts to enforce stricter formatting rules, such as prohibiting string interpolation and requiring specific indentation for the visSyntax variable. Review feedback correctly identifies that the use of triple backslashes for template string delimiters in both the instructions and the example code is incorrect and would lead to invalid JavaScript in the generated output; using a single escaped backtick is recommended instead.

Comment thread src/visualization/generator.ts Outdated
Comment thread src/visualization/generator.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant