Creative Analyzer - v0.0.1
    Preparing search index...

    Function safeReadText

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

      Parameters

      • response: Response

      Returns Promise<string>