Cloudflare Workers AI Response Truncated

What is the name of the modal you’re running?

@cf/meta/llama-4-scout-17b-16e-instruct

What is the issue or error you’re encountering

The response from the AI worker seems to be truncated at 1064 characters

What steps have you taken to resolve the issue?

I have tried multiple models and still the response is the same.

What are the steps to reproduce the issue?

  1. Setup a basic cloudflare
  2. Send a post request with a request to modify a HTML body
  3. See response truncates the HTML and does not return the whole body

Have you tried altering the max_tokens parameter?

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.