Skip to content

Updates to large files fail due to maxOutputTokens error #8048

@LeonNicholls

Description

@LeonNicholls

What happened?

When the CLI attempts to update a large source code file, it appears to expect the LLM to generate the full file in the response, but results in an error:

✕ [API Error: Unable to submit request because it has a maxOutputTokens value of 788977 but the supported 
  range is from 1 (inclusive) to 65537 (exclusive). Update the value and try again.]

What did you expect to happen?

Use diffs or limit the request to the LLM to only respond with the function or part of the code that needs to be updated.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2Important but can be addressed in a future release.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions