• drbh's avatar
    Pr 2374 ci branch (#2378) · 82d19d77
    drbh authored
    
    
    * Update __init__.py
    
    Fix issue with NoneType comparison for max_input_tokens and sliding_window
    
    - Add default values for max_input_tokens and sliding_window to handle None cases.
    - Ensure the comparison between max_input_tokens and sliding_window is handled correctly to prevent TypeError.
    - This change addresses the error: TypeError: '<=' not supported between instances of 'int' and 'NoneType'.
    
    * Update __init__.py
    
    Handle NoneType in sliding_window comparison to fix TypeError in __init__.py by ensuring the comparison logic accounts for NoneType values, preventing errors and improving code robustness.
    
    * fix: syntax/style tweak
    
    ---------
    Co-authored-by: default avatarPraz <prazanth2006@gmail.com>
    82d19d77
__init__.py 44.3 KB