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/tests/unit_tests/output_parsers
Blithe e31705b5ab
convert the parameter 'text' to uppercase in the function 'parse' of the class BooleanOutputParser (#5397)
when the LLMs output 'yes|no',BooleanOutputParser can parse it to
'True|False', fix the ValueError in parse().
<!--
when use the BooleanOutputParser in the chain_filter.py, the LLMs output
'yes|no',the function 'parse' will throw ValueError。
-->

Fixes # (issue)
  #5396
  https://github.com/hwchase17/langchain/issues/5396

---------

Co-authored-by: gaofeng27692 <gaofeng27692@hundsun.com>
1 year ago
..
__init__.py Add regex dict: (#1616) 1 year ago
test_base_output_parser.py Add _type for all parsers (#4189) 1 year ago
test_boolean_parser.py convert the parameter 'text' to uppercase in the function 'parse' of the class BooleanOutputParser (#5397) 1 year ago
test_combining_parser.py Nc/combining output parser (#3014) 1 year ago
test_datetime_parser.py Harrison/datetime parser (#4693) 1 year ago
test_enum_parser.py add enum output parser (#5165) 1 year ago
test_json.py handle json parsing errors (#5371) 1 year ago
test_list_parser.py Add unit test to output parsers (#3911) 1 year ago
test_pydantic_parser.py Harrison/json new line (#4646) 1 year ago
test_regex_dict.py Add regex dict: (#1616) 1 year ago
test_structured_parser.py Add unit test to output parsers (#3911) 1 year ago