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>
2023-05-30 16:26:17 -07:00
..
__init__.py Add regex dict: (#1616) 2023-03-13 23:05:39 -07:00
test_base_output_parser.py Add _type for all parsers (#4189) 2023-05-11 01:27:58 -07:00
test_boolean_parser.py convert the parameter 'text' to uppercase in the function 'parse' of the class BooleanOutputParser (#5397) 2023-05-30 16:26:17 -07:00
test_combining_parser.py Nc/combining output parser (#3014) 2023-04-17 20:29:53 -07:00
test_datetime_parser.py Harrison/datetime parser (#4693) 2023-05-29 07:52:30 -07:00
test_enum_parser.py add enum output parser (#5165) 2023-05-27 20:58:23 -07:00
test_json.py handle json parsing errors (#5371) 2023-05-29 06:18:19 -07:00
test_list_parser.py Add unit test to output parsers (#3911) 2023-05-01 14:53:08 -07:00
test_pydantic_parser.py Harrison/json new line (#4646) 2023-05-13 21:46:33 -07:00
test_regex_dict.py Add regex dict: (#1616) 2023-03-13 23:05:39 -07:00
test_structured_parser.py Add unit test to output parsers (#3911) 2023-05-01 14:53:08 -07:00