Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Feature: model-generated files (inline images) in chat/responses turns

クローズ
#548 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@abhiaiyer91 がすでに取り組んでいます。

2026年10月17日 から。

  • #550 @abhiaiyer91 による — オープン

評価

難易度
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_call output item with result (base64)
  • Gemini: inlineData parts 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 ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CopilotKit/aimock のほかの issue

CopilotKit/aimock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。