Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor AIConfig to Sanitize Input for Goal Parameters #3492

Merged
merged 15 commits into from
Apr 30, 2023

Commits on Apr 28, 2023

  1. Update remove_color_codes to handle non-string input

    The `remove_color_codes` function now accepts any type of input that can be cast to a string. Previously, it was only accepting string input and not casting non-string types to string which was causing errors in some cases.
    
    The changes were made to both logs.py and its corresponding test file.
    lc0rp committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    d5cd0d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    095206e View commit details
    Browse the repository at this point in the history
  3. Refactor AIConfig to Sanitize Input for Goal Parameters

    Details:
    - Modified `ai_config.py` to correctly handle and sanitize user input for AI goals and convert them to formatted strings, to fix an issue where some specially formatted ai_settings.yaml files were causing goals to load as list[dict]
    - `test_ai_config.py` includes a test for the `sanitize_input` function in `AIConfig` class.
    - Removed unnecessary tests from `test_logs.py`
    lc0rp committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    40c3f10 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cefa466 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    10d5d1e View commit details
    Browse the repository at this point in the history
  6. Update for readabiity

    lc0rp committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    79eb5c3 View commit details
    Browse the repository at this point in the history
  7. Update for readabiity

    lc0rp committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    7eef912 View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2023

  1. Updates for conciceness

    lc0rp committed Apr 29, 2023
    Configuration menu
    Copy the full SHA
    6716ff8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a52d62f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    187c9e6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a3b5be4 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2023

  1. Configuration menu
    Copy the full SHA
    0fd225b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b0efeb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    15a5fbc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    40055a2 View commit details
    Browse the repository at this point in the history