mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-24 09:24:27 +01:00
* move remove_color_codes to utils and add tests * Fix for ai_settings goals loaded as list(dict) Some ai_settings formats can cause goals to load as list(dict) not list(str) Refactor code in utils.py to explicitly convert input type to string in remove_color_codes() function. - Updated remove_color_codes function to convert input argument to string type explicitly to avoid unexpected type errors. - Test case added to check conversion of dict to string in remove_color_codes function. * Update tests/test_utils.py Co-authored-by: James Collins <collijk@uw.edu> * move remove_color_codes fn and tests to proper files --------- Co-authored-by: Luke Kyohere <lkyohere@mfsafrica.com> Co-authored-by: James Collins <collijk@uw.edu>