Feature: model-generated files (inline images) in chat/responses turns
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- backend-api-design, testing-qa
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 979
- Forks
- 84
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 58
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CopilotKit/aimock
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
CopilotKit/aimock#549 ·
Los mantenedores suelen responder en 1 día
-
Feature: scriptable citations / annotations on text responsesPosiblemente ocupada @abhiaiyer91 la tomó hace 2 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
CopilotKit/aimock#547 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
CopilotKit/aimock#544 ·
Los mantenedores suelen responder en 1 día
-
Feature request: provider-native model listing, required-header validation, and non-chat endpoints (Anthropic / Gemini)Posiblemente ocupada @jpr5 la tomó hace 7 días. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 14/100
CopilotKit/aimock#519 · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dependency DashboardAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 10/100
CopilotKit/aimock#289 ·
Los mantenedores suelen responder en 1 día
Todos los issues de CopilotKit/aimock
Issues similares
-
area: aria/combobox gemini-triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
angular/components#33973 ·
Los mantenedores suelen responder en 1 día
-
bug priority: P2
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
[bug] status, list and push crash with an uncaught NotInitializedError stack trace when teamai is not initializedPosiblemente ocupada @jay23606 la tomó hoy. Abiertobug good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Tencent/teamai-cli#1227 ·
Los mantenedores suelen responder en 1 día
-
[Tool]: YapAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
withkarann/aifoxx#417 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
sindresorhus/eslint-plugin-unicorn#3921 ·
Los mantenedores suelen responder en 1 día