Files
openrouter-python-sdk-retry…/docs/components/searchqualitylevel.mdx
T

24 lines
936 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "SearchQualityLevel"
---
How much context to retrieve per result. Applies to Exa, Parallel, and Perplexity engines; ignored with native provider search and Firecrawl. For Exa, pins a fixed per-result character cap (low=5,000, medium=15,000, high=30,000); when omitted, Exa picks an adaptive size per query and document (typically ~2,0004,000 characters per result). For Parallel, controls the total characters across all results; when omitted, Parallel uses its own default size. For Perplexity, maps directly to the Search API's native search_context_size parameter. Overridden by `max_characters` when both are set.
## Example Usage
```python
from openrouter.components import SearchQualityLevel
# Open enum: unrecognized values are captured as UnrecognizedStr
value: SearchQualityLevel = "low"
```
## Values
This is an open enum. Unrecognized values will not fail type checks.
- `"low"`
- `"medium"`
- `"high"`