Interface: GatewayRealtimeOptions
Defined in: src/ai-gateway/inference-client.ts:103
Explicit WebSocket transport and resource bounds. Realtime never inherits HTTP retries.
Example
`const options: GatewayRealtimeOptions = { webSocketFactory: (url, options) => new WebSocket(url, options) };`
Extends
Omit<GatewayInferenceRequestOptions,"numRetries">
Properties
signal?
optional signal?: AbortSignal;
Defined in: src/ai-gateway/inference-client.ts:92
Inherited from
GatewayInferenceRequestOptions.signal
timeoutMs?
optional timeoutMs?: number;
Defined in: src/ai-gateway/inference-client.ts:93
Inherited from
GatewayInferenceRequestOptions.timeoutMs
headers?
optional headers?: Record<string, string>;
Defined in: src/ai-gateway/inference-client.ts:97
x-portkey-* routing/observability headers or OpenAI-Beta; authentication cannot be overridden.
Inherited from
GatewayInferenceRequestOptions.headers
webSocketFactory
webSocketFactory: GatewayWebSocketFactory;
Defined in: src/ai-gateway/inference-client.ts:104
handshakeTimeoutMs?
optional handshakeTimeoutMs?: number;
Defined in: src/ai-gateway/inference-client.ts:105
maxEventBytes?
optional maxEventBytes?: number;
Defined in: src/ai-gateway/inference-client.ts:106
maxBufferedEvents?
optional maxBufferedEvents?: number;
Defined in: src/ai-gateway/inference-client.ts:107
maxBufferedBytes?
optional maxBufferedBytes?: number;
Defined in: src/ai-gateway/inference-client.ts:108