Skip to content

Commit

Permalink
Adding STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS missing backticks (#12238
Browse files Browse the repository at this point in the history
)

This PR fixes the fact that `STRUCTURED_FORMAT_SIMPLE_INSTRUCTIONS` was
missing backticks at the end
  • Loading branch information
jamesbraza committed Oct 25, 2023
1 parent 9fc28d5 commit 53f35c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{
{format}
}}
"""
```"""


PYDANTIC_FORMAT_INSTRUCTIONS = """The output should be formatted as a JSON instance that conforms to the JSON schema below.
Expand Down
1 change: 1 addition & 0 deletions libs/langchain/langchain/output_parsers/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def get_format_instructions(self, only_json: bool = False) -> str:
# "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
Expand Down

0 comments on commit 53f35c5

Please sign in to comment.