Skip to content

The API error log has been added to the chat message list.Β #7249

@zenyanbo

Description

@zenyanbo

App Version

3.25.20

API Provider

OpenAI Compatible

Model Used

Gemini

Roo Code Task Links (Optional)

Thank you for your work.

When i use roo, I found an issue. API error logs are always added to the chat message list.

Such as, when Google AIStudio return a empty assistant message.
Image

Here. Failure: I did not provide a response. is the historical empty assistant message.

I think that errors on API-level (of course, the root cause is an unreliable endpoint) should not be passed to LLM. Otherwise, it will disrupt the chat history, right?

πŸ” Steps to Reproduce

When the endpoint returns an empty assistant message (at least openai-compatible does so), the bug will occur.

πŸ’₯ Outcome Summary

I expect error logs to be excluded from chat history.

πŸ“„ Relevant Logs or Errors (Optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions