ssl_verify=False or retry policy never leaks into another’s when many teams or agents share a process.
Gateway options
Retries on rate limits, server errors, timeouts and connection failures, with exponential backoff that honours
retry-after. None means 2.Drop what the model rejects instead of failing: sampling parameters on OpenAI reasoning models,
reasoning_effort on models without reasoning, thinking on older Claude models, sampling on Claude 4.7 and later, and forced tool_choice on Claude 5.1 and later. Unknown keyword arguments are then not sent either.Seconds an idle pooled connection stays open, so agent steps that arrive a few seconds apart reuse the same connection.
Gzip the request body sent to Claude’s Messages API, which saves upload time on long histories. OpenAI-compatible providers always get an uncompressed body.
None reads ROUTEHUB_GZIP_ON.Print the provider, model, parameter names and timing to stderr. API keys and message content are never printed.
Your own configured client:
openai.OpenAI or AsyncOpenAI for OpenAI-compatible providers, an httpx Client or AsyncClient for Claude. No API key is required, and the client’s own TLS, pool and retry settings apply.Return a canned response, or raise the given exception, without a network call. See Testing.
Provider options
Any other OpenAI parameter, such asstop, seed, n, logprobs or prompt_cache_key, can be passed by name. Unrecognized keyword arguments are sent in the request body unless drop_params is on.