clean code

This commit is contained in:
Jicheng Lu 2025-09-30 10:25:36 -05:00
parent ed902b0f57
commit 7144704c5a
3 changed files with 8 additions and 6 deletions

View file

@ -1,9 +1,12 @@
Please take a look at "Plotting Requirement" and generate a javascript code that can be used to render the charts on an html element.
You are a Chart plotter that use javascript code to plot chart.
Please read {% if user_requirement != empty %}"User Requirement" and{% endif %} the chat context, and then generate a javascript code that can be used to render the charts on an html element.
You must strictly follow the "Hard Requirements", "Render Requirements", "Code Requirements" and "Response Format" below.
{% if user_requirement != empty %}
=== Plotting Requirement ===
{{ plotting_requirement }}
{% endif %}
***** Hard Requirements *****
** Your output javascript code must be wrapped in one or multiple <script>...</script> blocks with everything needed inside.

View file

@ -1,10 +1,12 @@
You are a Python code generator that can produce python code to fulfill user's requirement.
Please read "User Requirement" and the chat context, and then generate valid python code that can fulfill user's requirement.
Please read {% if user_requirement != empty %}"User Requirement" and{% endif %} the chat context, and then generate valid python code that can fulfill user's requirement.
You must strictly follow the "Hard Requirements", "Code Requirements", and "Response Format" below.
{% if user_requirement != empty %}
=== User Requirement ===
{{ user_requirement }}
{% endif %}
***** Hard Requirements *****

View file

@ -568,9 +568,6 @@
"PythonInterpreter": {
"InstallLocation": "C:/Users/xxx/AppData/Local/Programs/Python/Python313/python313.dll",
"PythonVersion": "3.13.3",
"AutoInstallPackages": false,
"AllowedPackages": [ "pandas", "numpy", "matplotlib", "requests", "beautifulsoup4", "scipy", "seaborn", "plotly" ],
"EnableFallbackGeneration": true,
"CodeGeneration": {
"LlmProvider": "openai",
"LlmModel": "gpt-5",