(cls, v: Any)
| 64 | @field_validator("model_header", mode="before") |
| 65 | @classmethod |
| 66 | def _parse_json_string(cls, v: Any) -> Any: |
| 67 | if isinstance(v, str) and v.strip().startswith("{"): |
| 68 | try: |
| 69 | return orjson.loads(v) |
| 70 | except orjson.JSONDecodeError: |
| 71 | return v |
| 72 | return v |
| 73 | |
| 74 | |
| 75 | class OversizedContextStrategy(StrEnum): |
nothing calls this directly
no outgoing calls
no test coverage detected