Skip to content

POST /api/chat accepts unbounded message history #16

Description

@royalpinto007

Problem

Only emptiness is checked: a 10k-message history is forwarded straight to Groq with no size/count cap.

Where

src/worker/index.ts (POST /api/chat validation).

Acceptance

Add a failing test first posting an oversized history, expecting 413 (or 400) instead of forwarding. Then fix.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions