Adding STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS missing backticks (#12238)

This PR fixes the fact that `STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS` was
missing backticks at the end
This commit is contained in:
James Braza 2023-10-24 21:30:25 -07:00 committed by GitHub
parent 9fc28d50c3
commit 53f35c5f5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS = """
{{
{format}
}}
"""
```"""
PYDANTIC_FORMAT_INSTRUCTIONS = """The output should be formatted as a JSON instance that conforms to the JSON schema below.

View File

@ -77,6 +77,7 @@ class StructuredOutputParser(BaseOutputParser):
# "foo": List[string] // a list of strings
# "bar": string // a string
# }
# ```
Args:
only_json (bool): If True, only the json in the Markdown code snippet