Skip to content

Commit 5a9bd72

Browse files
committed
Bound extract validation schema cache
1 parent a515420 commit 5a9bd72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stagehand/resources/sessions_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def validate_extract_response(
7373
return result
7474

7575

76-
@lru_cache(maxsize=None)
76+
@lru_cache(maxsize=256)
7777
def _validation_schema(schema: Type[BaseModel], strict_response_validation: bool) -> Type[BaseModel]:
7878
extra_behavior: Literal["allow", "forbid"] = "forbid" if strict_response_validation else "allow"
7979
validation_schema = cast(

0 commit comments

Comments
 (0)