Feature: model-generated files (inline images) in chat/responses turns
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- typescript
- Lĩnh vực
- backend-api-design, testing-qa
Hướng nghiên cứu
Start by tracing the mocked responses, Gemini, Chat Completions, and Anthropic turn builders, especially where text responses and customToolCalls are handled. Add or update the response fixtures and stream-output tests to cover optional generated files, including the unsupported-error cases. The work is done when Responses emits an image_generation_call with base64 data, Gemini emits inlineData, and the other wire formats return the documented unsupported error; an open linked pull request indicates the work has already moved elsewhere.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Image generation and the Files API are mocked as separate endpoints, but there is no way to make a chat/responses model turn return a generated file (e.g. an inline image). Clients that surface model-generated files (AI SDK file stream parts) can't be tested through aimock.
Proposal
An optional files field on text / content+tool-call responses:
llm.on({ endpoint: 'responses' }, {
content: 'Here is your chart.',
files: [{ mediaType: 'image/png', data: '<base64>' }],
});
Emitted per wire format:
- OpenAI Responses: an
image_generation_calloutput item withresult(base64) - Gemini:
inlineDataparts in the candidate content - Chat Completions / Anthropic: reject with a clear unsupported error (same pattern as
customToolCalls)
Use case
Same as the citations request: Mastra's loop regression tests need to assert that model-generated files flow through to the stream and stored messages.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CopilotKit/aimock
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
CopilotKit/aimock#549 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature: scriptable citations / annotations on text responsesCó thể đã có người làm @abhiaiyer91 đã nhận 2 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
CopilotKit/aimock#547 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
CopilotKit/aimock#544 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feature request: provider-native model listing, required-header validation, and non-chat endpoints (Anthropic / Gemini)Có thể đã có người làm @jpr5 đã nhận 7 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 14/100
CopilotKit/aimock#519 · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dependency DashboardĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
CopilotKit/aimock#289 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của CopilotKit/aimock
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jessepollak/home#2223 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code-yeongyu/senpi#3756 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
langchain-ai/deepagents#7059 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
osmlab/name-suggestion-index#12992 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
hemilabs/ui-monorepo#2506 ·
Maintainer thường phản hồi trong vòng 1 ngày