zdr, data_collection) and provider-specific passthrough options
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
zdr, data_collection) and provider-specific passthrough options
import { SpeechRequestProvider } from "@openrouter/sdk/models";
let value: SpeechRequestProvider = {};
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
dataCollection | models.SpeechRequestDataCollection | ➖ | Data collection setting. If no available model provider meets the requirement, your request will return an error. - allow: (default) allow providers which store user data non-transiently and may train on it - deny: use only providers which do not collect user data. | allow |
options | models.ProviderOptions | ➖ | Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped. | { “openai”: { “max_tokens”: 1000 } } |
zdr | boolean | ➖ | Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used. | true |