Skip to content

P0: Implement TypeScript forwarding middleware and SSE parity #8

Description

@mrnicholasbcarter-code

Objective

Turn the TypeScript package into a real OpenAI-compatible forwarding middleware with parity to the Python contract.

Acceptance criteria

  • Non-stream and SSE chat completions forward end to end.
  • Abort, timeout, retry legality, upstream errors, headers, usage, tools, and unknown fields are tested.
  • Zod validation covers malformed payloads and parallel tool calls.
  • Routing decision and outcome schemas are versioned and compatible with Python or the boundary is explicit.
  • No hidden provider assumptions or literal credential redactions remain in examples.
  • Benchmark reports decision overhead and streaming behavior without unsupported throughput claims.

Assigned execution route

  • Primary: agy/gemini-3.1-pro-low.
  • Review: agy/gemini-3.5-flash-medium.
  • Escalate: streaming, auth, retry, or package API ambiguity.

Evidence

Attach integration tests, SSE fixture, abort test, package API snapshot, and benchmark methodology.

Release impact

P0.

Metadata

Metadata

Labels

acceptance-criteriaAcceptance criteria and evidenceassigned-modelDelegated model assignmentgate-blockerBlocks promotion until resolvedportfolio-release20K-star portfolio release trackingstatus-readyReady for implementation

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions