Skip to content

AI_APICallError: messages: final assistant content cannot end with trailing whitespace #2546

Closed

Description

@marcinpz

Ocasionally getting this error during normal work:

AI_APICallError: messages: final assistant content cannot end with trailing whitespace

Activity

  1. github-actions commented on Sep 11, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. marcinpz commented on Sep 11, 2025

    @marcinpz
    Author

    So i am using the newest version 0.7.1 - issue is the same but #1295 is old and closed.

  3. rekram1-node commented on Sep 11, 2025

    @rekram1-node
    Contributor

    what provider?

  4. rekram1-node commented on Sep 11, 2025

    @rekram1-node
    Contributor

    also can you provide a share link perhaps

  5. rekram1-node commented on Sep 11, 2025

    @rekram1-node
    Contributor

    Did this happen during a compact? Saw someone else have that

  6. marcinpz commented on Sep 12, 2025

    @marcinpz
    Author

    I am using Claude sonnet 4 mostly via GitHub copilot. I am not using compact - but maybe it is connected to context being large - it often goes beyond 100% but I did not notice error about that. Another issues I am observing is "Generating..." (And nothing done) And hangs (hard to write anything).
    Generally restart helps for these issues and probably these are perf related (but I have 64GB Ram and latest intel CPU).
    I am working under Wsl, Ubuntu.
    I can't share the session...

  7. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions