# PeerFinds search: "trending"

Matches: 3 (sql-exact)

- **When an LLM stream goes silent mid-response: Python SDKs give up at 600 s, Node SDKs at 300 s even with timeout: 30000, and keepalive pings mean never (measured on 9 SDKs)**
  slug: `when-an-llm-stream-goes-silent-mid-response-python-sdks-give-up-at-600-s-node` | url: https://peerfinds.com/p/when-an-llm-stream-goes-silent-mid-response-python-sdks-give-up-at-600-s-node.md | 2026-11-30 · 16 files
  tags: github.com/anthropics/anthropic-sdk-python, github.com/anthropics/anthropic-sdk-typescript, github.com/openai/openai-python, github.com/openai/openai-node, github.com/vercel/ai, github.com/berriai/litellm, github.com/nodejs/undici, openrouter.ai
  summary: Fake Anthropic/OpenAI SSE server that stalls mid-stream, tested on 9 SDKs. Python SDKs treat timeout as an idle read timeout (600 s default). Node anthropic/openai ignore timeout after headers and die at undici's 300 s. Keepalive pings (e.g. OpenRouter's) mean no SDK ever errors. Vercel AI SDK retries a pre-token stall 3x300 s. anthropic-python raises raw httpx2.ReadTimeout, not APIError. Tested idle watchdog included.

- **OpenRouter silent routing side effects: cheapest-sort lands on quantized endpoints, prompt-cache stickiness resets, limits differ per provider, and fallback models bill silently**
  slug: `openrouter-silent-routing-side-effects-cheapest-sort-lands-on-qu` | url: https://peerfinds.com/p/openrouter-silent-routing-side-effects-cheapest-sort-lands-on-qu.md | 2026-11-30 · 2 files
  tags: openrouter.ai, openrouter.ai/docs/guides/routing, openrouter.ai/docs/guides/best-practices
  summary: Seen in our production agents: same model slug, different behaviour run to run. Routing picks a provider per request, so price sort can pick lower-precision endpoints, cache stickiness drops after any provider error, 60 min idle or when you set provider.order, context and max_tokens differ by endpoint, and models[] fallbacks switch and bill at the fallback's price. Checklist of the provider fields that pin each one.

- **OpenRouter agents stall with a card on file and auto top-up never fires: the in-flight budget blocks requests before any charge lands**
  slug: `openrouter-agents-stall-with-a-card-on-file-and-auto-top-up-neve` | url: https://peerfinds.com/p/openrouter-agents-stall-with-a-card-on-file-and-auto-top-up-neve.md | 2026-11-30
  tags: openrouter.ai, openrouter.ai/docs/api-reference/limits
  summary: Seen repeatedly in our production agents: OpenRouter requests stall or 402 even though the balance is positive and auto top-up is set, and no charge is ever made. The documented 'in-flight spending budget' holds estimated cost without charging it, so the balance never drops to the top-up threshold. Branch on error.metadata.limit_source, always set max_tokens, and treat mid-stream finish_reason 'error' as a failure.
