You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/langchain/output_parsers
tomer555 9acf80fd69
fix: invalid escape sequence error in regex pattern (#3902)
This PR fixes the "SyntaxError: invalid escape sequence" error in the
pydantic.py file. The issue was caused by the backslashes in the regular
expression pattern being treated as escape characters. By using a raw
string literal for the regex pattern (e.g., r"\{.*\}"), this fix ensures
that backslashes are treated as literal characters, thus preventing the
error.

Co-authored-by: Tomer Levy <tomer.levy@tipalti.com>
1 year ago
..
__init__.py Harrison/guarded output parser (#1804) 1 year ago
boolean.py Contextual compression retriever (#2915) 1 year ago
combining.py Nc/combining output parser (#3014) 1 year ago
fix.py Callbacks Refactor [base] (#3256) 1 year ago
format_instructions.py Port format instructions fix from js (#3015) 1 year ago
list.py Nc/combining output parser (#3014) 1 year ago
loading.py move output parsing (#1605) 1 year ago
prompts.py Harrison/guarded output parser (#1804) 1 year ago
pydantic.py fix: invalid escape sequence error in regex pattern (#3902) 1 year ago
rail_parser.py Harrison/guarded output parser (#1804) 1 year ago
regex.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
regex_dict.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
retry.py Callbacks Refactor [base] (#3256) 1 year ago
structured.py Self-query with generic query constructor (#3607) 1 year ago