Skip to content

[runtime_policy]

Timeouts of upstream requests and streams, and internal buffer sizes.

Key Type Default Description
runtime_policy.health_max_consecutive_failures integer 3 health_max_consecutive_failures is how many failed health checks in a row mark a provider unavailable (default 3).
runtime_policy.rerank_default_top_n integer 64 rerank_default_top_n is the top_n Prism sends when a rerank request has none (default 64).
runtime_policy.rerank_max_top_n integer 128 rerank_max_top_n is the largest top_n a rerank request may ask for (default 128); larger values get 400 invalid_request_size.
runtime_policy.stream_open_timeout_local_ms integer 90000 stream_open_timeout_local_ms is how long Prism waits for a self-hosted or local provider to start answering a stream (default 90000 ms); remote providers use the _remote keys. The old name stream_open_timeout_ms still works.
runtime_policy.stream_open_timeout_remote_ms integer 8000 stream_open_timeout_remote_ms is how long Prism waits for a remote provider to start answering a stream (default 8000 ms).
runtime_policy.stream_open_timeout_remote_reasoning_ms integer 60000 stream_open_timeout_remote_reasoning_ms is the open-phase timeout of a stream to a remote model that reasons before answering (default 60000 ms): an aggregator sends its headers only after the backend has read the prompt.
runtime_policy.stream_idle_timeout_remote_ms integer 120000 stream_idle_timeout_remote_ms ends a stream from a remote provider whose body stays silent this long (default 120000 ms; 0 disables; a negative value fails the load).
runtime_policy.stream_idle_timeout_local_ms integer 600000 stream_idle_timeout_local_ms ends a stream from a self-hosted provider whose body stays silent this long (default 600000 ms; 0 disables; a negative value fails the load).
runtime_policy.upstream_request_timeout_remote_ms integer 120000 upstream_request_timeout_remote_ms is the deadline of one non-stream attempt to a remote provider (default 120000 ms; an explicit value must be positive).
runtime_policy.upstream_request_timeout_remote_reasoning_ms integer 600000 upstream_request_timeout_remote_reasoning_ms is the deadline of one non-stream attempt to a remote model that reasons before answering (default 600000 ms).
runtime_policy.upstream_request_timeout_local_ms integer 600000 upstream_request_timeout_local_ms is the deadline of one non-stream attempt to a self-hosted provider (default 600000 ms).