Skip to content

Handle malformed DeepSeek responses gracefully #60

Description

@ashrafee-dev

Problem

Invalid JSON or an upstream DeepSeek failure can currently propagate as an unhandled exception.

Acceptance criteria

  • Handle JSON parsing failures and relevant client errors.
  • Return a controlled API error for HTTP requests and a controlled message for WebSockets.
  • Add tests for malformed model output and an upstream failure.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions