mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
Fix(settings): enforce condenser max history size >= 20 and improve messaging (#10638)
This commit is contained in:
@@ -110,8 +110,8 @@ class Settings(BaseModel):
|
||||
def validate_condenser_max_size(cls, v: int | None) -> int | None:
|
||||
if v is None:
|
||||
return v
|
||||
if v < 10:
|
||||
raise ValueError('condenser_max_size must be at least 10')
|
||||
if v < 20:
|
||||
raise ValueError('condenser_max_size must be at least 20')
|
||||
return v
|
||||
|
||||
@field_serializer('secrets_store')
|
||||
|
||||
Reference in New Issue
Block a user