We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c5f442 commit f0e15bdCopy full SHA for f0e15bd
crazy_functions/json_fns/pydantic_io.py
@@ -62,8 +62,8 @@ def generate_format_instructions(self):
62
if "type" in reduced_schema:
63
del reduced_schema["type"]
64
# Ensure json in context is well-formed with double quotes.
65
+ schema_str = json.dumps(reduced_schema)
66
if self.example_instruction:
- schema_str = json.dumps(reduced_schema)
67
return PYDANTIC_FORMAT_INSTRUCTIONS.format(schema=schema_str)
68
else:
69
return PYDANTIC_FORMAT_INSTRUCTIONS_SIMPLE.format(schema=schema_str)
0 commit comments