feat: 支持更多类型的图片模型

This commit is contained in:
ccnetcore
2026-01-03 03:19:31 +08:00
parent be5f57f654
commit 5a7f0ab108
3 changed files with 25 additions and 15 deletions

View File

@@ -43,7 +43,7 @@ public class ImageGenerationJob : AsyncBackgroundJob<ImageGenerationJobArgs>, IT
// 构建 Gemini API 请求对象
var parts = new List<object>
{
new { text = task.Prompt }
new { role="user",text = task.Prompt }
};
// 添加参考图(如果有)