Feature: model-generated files (inline images) in chat/responses turns
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 986
- フォーク
- 81
- 平均マージ
- 15時間 23分
- マージ済み PR(30日)
- 79
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CopilotKit/aimock のほかの issue
-
Dependency Dashboardオープン
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
CopilotKit/aimock#289 ·
メンテナーはふだん 1 日以内に返信
CopilotKit/aimock の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
microsoft/playwright#43640 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
grasshopper-protocol/grsshppr#172 ·
メンテナーはふだん 1 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Tencent/teamai-cli#1397 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
DouyinFE/semi-design#3641 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信