Swarnava Sengupta With 106M ISR writes vs 30M ISR reads, your write-to-read ratio is unusually high (about 3.5:1). This typically indicates one or more of these issues: Very short revalidation intervals – If your revalidate value is too low (e.g., 10-30 seconds), pages regenerate frequently even if content hasn't changed Excessive on-demand revalidation calls – If your backend triggers revalidatePath() or revalidateTag() too aggressively on every content update Bot/crawler traffic triggering regenerations – Bots hitting many unique URLs can cause cache misses that trigger new page generations Large number of un
Akash Electron thank you @swarnava
Pauline P. Narvas Thanks for reporting this feature gap! You're correct - while the AI SDK supports imageConfig for Google Gemini models (via PR #12059), this isn't currently available through the AI Gateway REST API. You could try the following workarounds though: Use the AI SDK with TypeScript (already supports this) If using BYOK, make direct calls to Google's API with imageConfig parameters Thanks again! Keep an eye out for updates :)
René Schubert Thanks for pointing to the PR, it helped me understand a bit more. However I’m not sure about the difference between and Is it basically the same and for both the structure of the providerOptions should be or does it differ, depending on whether I use @ai-sdk/google or not?
Pauline P. Narvas The NS_BASE_STREAM_CLOSED error typically occurs when the MCP client connection is closed prematurely. When you're using MCP tools with streaming, the client needs to stay open until the entire response completes, if it closes early, you'll hit this error. Here's what I'd recommend checking: Make sure your MCP client isn't timing out or disconnecting before the stream finishes Verify that your connection handling code keeps the client alive throughout the entire streaming response Check if there are any timeout settings that might be causing the connection to close early Let me know if you hav
phanithlim Thanks Pauline P. Narvas for the response! I’ve been stuck on this for about 3 days now and still can't resolve it. I was previously using experimental_createMCPClient, and it worked perfectly. However, since I updated my code to use the standard createMCPClient, I began facing the NS_BASE_STREAM_CLOSED issue mentioned above. The connection seems to drop the moment the LLM starts streaming the tool output back to the UI. Since I am using streamText with toUIMessageStreamResponse(), I suspect the new createMCPClient handles transport lifecycles differently, causing it to be garbage collected or