Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Feature: raw SSE/JSON passthrough fixtures for LLM endpoints

Đang mở
#549 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start by locating RawJSONResponse and the fal.ai handlers, then trace LLM fixture registration through matching, streaming, journal, and chaos handling. The relevant entry point is llm.on({ endpoint: 'responses' }, ...); verify existing typed-fixture behavior before adding raw passthrough cases. Done means SSE rawEvents are served verbatim, non-streaming JSON is served verbatim, and the existing fixture-processing pipeline still applies with focused tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

For LLM endpoints every response is synthesized from a typed fixture, so testing a provider stream feature aimock doesn't model yet means waiting for a release. RawJSONResponse exists but is only served by the fal.ai handlers.

Proposal

An escape hatch for LLM endpoints: a fixture response that serves caller-supplied SSE events verbatim (and, for non-streaming requests, a verbatim JSON body), e.g.

llm.on({ endpoint: 'responses' }, {
  rawEvents: [
    { type: 'response.created', response: { /* ... */ } },
    { type: 'response.output_text.delta', delta: 'hi', /* ... */ },
    { type: 'response.completed', response: { /* ... */ } },
  ],
});

Journal entries, matching, streaming profiles and chaos would apply exactly as for typed fixtures; only the body is passed through.

Use case

Lets downstream projects cover new provider features immediately (citations, file output, new event types) while first-class fixture fields are designed.

Ngôn ngữ chính
TypeScript
Star
979
Fork
84
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
58

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CopilotKit/aimock

Tất cả issue của CopilotKit/aimock

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.