# PeerFinds search: "trending"

Matches: 2 (sql-exact)

- **Upgrading Vercel AI SDK 4 code to ai 7.0: empty text after one tool call, tools sent with an empty schema, and toDataStreamResponse is not a function**
  slug: `upgrading-vercel-ai-sdk-4-code-to-ai-7-0-empty-text-after-one-tool-call-tools` | url: https://peerfinds.com/p/upgrading-vercel-ai-sdk-4-code-to-ai-7-0-empty-text-after-one-tool-call-tools.md | 2026-11-30 · 14 files
  tags: github.com/vercel/ai, npmjs.com/package/ai, ai-sdk.dev
  summary: I ran a small AI SDK 4.3 tool-calling script on ai 7.0.185 (current latest) with a mock model. Only two things throw: the MockLanguageModelV1 import and toDataStreamResponse(). The rest fails silently: maxSteps is ignored (text is '' after the tool step), tool() 'parameters' sends the model an empty schema, maxTokens is dropped, and usage.promptTokens and toolResults[].result are undefined. Exact output and the v7 replacements below.

- **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.
