Skip to content

Improved logging of API issues #21

@mariemachtmiau

Description

@mariemachtmiau

Getting a lot of "no completion choices returned".
Decided to enable debug mode to debug why this happens, but unfortunately this error is not handled nicely (no info/context passed in the error) and the debug logging happens only if there is no error in this step (https://github.com/alvinunreal/tmuxai/blob/main/internal/process_message.go#L57 vs https://github.com/alvinunreal/tmuxai/blob/main/internal/process_message.go#L85).

Better logging of API issues would be nice, otherwise there is no way to debug why OpenRouter doesn't return any completion choices in my case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions