Skip to content

Commit 853aee1

Browse files
improving the template to avoid generation of code with unsupported types
1 parent cb5fecd commit 853aee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandasai/core/prompts/templates/shared/output_type_template.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% if not output_type %}
2-
type (possible values "string", "number", "dataframe", "plot"). Examples: { "type": "string", "value": f"The highest salary is {highest_salary}." } or { "type": "number", "value": 125 } or { "type": "dataframe", "value": pd.DataFrame({...}) } or { "type": "plot", "value": "temp_chart.png" }
2+
type (possible values "string", "number", "dataframe", "plot"). No other types available. Examples: { "type": "string", "value": f"The highest salary is {highest_salary}." } or { "type": "number", "value": 125 } or { "type": "dataframe", "value": pd.DataFrame({...}) } or { "type": "plot", "value": "temp_chart.png" }
33
{% elif output_type == "number" %}
44
type (must be "number"), value must int. Example: { "type": "number", "value": 125 }
55
{% elif output_type == "string" %}

0 commit comments

Comments
 (0)