feat(core-ai): edit images with generateImage
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
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react-native, typescript
- Lĩnh vực
- ai, backend-api-design, documentation, testing
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 64
- Merge trung bình
- 11 giờ 24 phút
- Pull request đã merge (30 ngày)
- 91
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọ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 callstackincubator/ai
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
callstackincubator/ai#378 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
callstackincubator/ai#366 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
callstackincubator/ai#365 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Blocked enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
callstackincubator/ai#364 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Blocked enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
callstackincubator/ai#363 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của callstackincubator/ai
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
cursor/community-plugins#583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A model answer with prose after its fenced JSON is rejected as NOT_JSONCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởafk-ok importer size:S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
enorm-labs/event-junkie#5404 ·
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 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Wavvon/Wavvon-clients#493 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
answerLoops/answerLoops#679 ·
Maintainer thường phản hồi trong vòng 1 ngày