Skip to content

Commit

Permalink
Update utils.py to exclude schema definitions from JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
bhimrazy committed Sep 1, 2024
1 parent e734a5e commit c60c9af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def prep_prompt(system_prompt: str, response_format: ResponseFormat):
"- DO NOT include any additional text, comments, or annotations outside of the JSON object.\n"
"- Follow the structure and field names as specified in the schema exactly.\n"
"- Follow the JSON formatting conventions.\n"
"- DO NOT include schema definitions in the JSON output.\n"
"- Ensure that the JSON output strictly conforms to the schema provided without deviation.\n"
"- Do validate your JSON output for syntax correctness and adherence to the schema before submission.\n"
"- Strictly adhere to the schema provided above.\n"
Expand Down

0 comments on commit c60c9af

Please sign in to comment.