Safely read a response body as text, truncated to 500 chars. Exported for tests.
Gemini error bodies can include the full request echo on validation failures — 500 chars is plenty for wrangler tail without flooding logs.
wrangler tail
Safely read a response body as text, truncated to 500 chars. Exported for tests.
Gemini error bodies can include the full request echo on validation failures — 500 chars is plenty for
wrangler tailwithout flooding logs.