# Changelog of OpenRouter for Agents - Tools & Fallbacks (`automa-flow/openrouter-agent-gateway`) Actor

- **URL**: https://apify.com/automa-flow/openrouter-agent-gateway/changelog.md
- **Full Actor documentation**: https://apify.com/automa-flow/openrouter-agent-gateway.md

## Changelog

### Unreleased

- Reject overflowing numeric values and JSON output nested beyond 64 levels instead of silently changing values or crashing the batch.
- Treat explicit non-assistant responses as malformed and uncharged. Invalid oversized usage costs no longer discard an otherwise useful response.

### 2026-09-22

- Empty, refused and unusable tool responses no longer count as paid successful calls. Useful but incomplete responses remain explicit PARTIAL results.
- Run summaries now preserve partial failures and separate gateway charges from raw model usage and the separate proxy invoice.
- A batch with only source timeouts and unsent deadline rows correctly fails at the source level while retaining every per-request result.
- Omitted maxTokens now applies a 2048-token cap. reasoningEffort=none is sent explicitly to the model.
- Structured output now validates JSON Schema Draft 2020-12 constraints. Self-contained schemas are required; external and recursive references are rejected.
- Runs use 256 MB, a 90-second per-call timeout and a 120-second batch work budget. Split slow workloads into smaller batches. Provider price ceilings exclude endpoints above $10/M input or $30/M output tokens and providers with a per-request fee.

Private release. Existing pinned builds keep their previous behavior until upgraded.
