feat(core-ai): edit images with generateImage
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react-native, typescript
- Área
- ai, backend-api-design, documentation, testing
Línea de trabajo
Start by reading coreAI.imageModel(...) and generateImage/doGenerate, then trace how CoreAIDiffusion accepts PipelineConfiguration with startingImage and strength and how FLUX.2 klein exports expose supportsImageToImage and img2imgRoutes. Check how options.files carries input images and how EXIF orientation and model-size resizing are handled. Done means image edits use the first image, unsupported inputs produce warnings, the Images and Video docs cover editing, and the hosted FLUX.2 klein export has a harness test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
coreAI.imageModel(...) only generates from text. The CoreAIDiffusion pipeline can also edit an image: PipelineConfiguration takes a startingImage and a strength, and FLUX.2 klein exports have image-to-image routes (supportsImageToImage, img2imgRoutes).
Today generateImage ignores the AI SDK's input images (prompt: { images, text }, which reach the model as options.files) and mask without a warning, so an edit request silently comes back as a text-to-image result.
To do:
- Pass the first input image to the pipeline as
startingImage, decoded with its EXIF orientation applied and resized to the model's size providerOptions['core-ai'].strength(0–1) sets how far the result moves from the image; pick a default below 1 for edits- Warn when more than one image is given, when a
maskis given (the pipeline has no inpainting), and when the export has no image-to-image route - Docs: an image editing section in Images and Video, and a harness test on the hosted FLUX.2 klein export
Until then, doGenerate should at least return an unsupported warning for files and mask.
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.4k
- Forks
- 64
- Merge medio
- 11 h 24 min
- PR fusionados (30 d)
- 91
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la 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 callstackincubator/ai
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
callstackincubator/ai#378 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
callstackincubator/ai#366 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
callstackincubator/ai#365 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Blocked enhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
callstackincubator/ai#364 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Blocked enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
callstackincubator/ai#363 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstackincubator/ai
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
cursor/community-plugins#583 ·
Los mantenedores suelen responder en 1 día
-
A model answer with prose after its fenced JSON is rejected as NOT_JSONPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoafk-ok importer size:S
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
enorm-labs/event-junkie#5404 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Wavvon/Wavvon-clients#493 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
answerLoops/answerLoops#679 ·
Los mantenedores suelen responder en 1 día