feat: 完成条件
This commit is contained in:
@@ -43,7 +43,7 @@ public class ImageGenerationJob : AsyncBackgroundJob<ImageGenerationJobArgs>, IT
|
||||
// 构建 Gemini API 请求对象
|
||||
var parts = new List<object>
|
||||
{
|
||||
new { role="user",text = task.Prompt }
|
||||
new { text = task.Prompt }
|
||||
};
|
||||
|
||||
// 添加参考图(如果有)
|
||||
@@ -64,7 +64,7 @@ public class ImageGenerationJob : AsyncBackgroundJob<ImageGenerationJobArgs>, IT
|
||||
{
|
||||
contents = new[]
|
||||
{
|
||||
new { parts }
|
||||
new { role = "user", parts }
|
||||
}
|
||||
};
|
||||
|
||||
@@ -77,9 +77,9 @@ public class ImageGenerationJob : AsyncBackgroundJob<ImageGenerationJobArgs>, IT
|
||||
task.ModelId,
|
||||
request,
|
||||
task.UserId,
|
||||
tokenId:task.TokenId);
|
||||
tokenId: task.TokenId);
|
||||
|
||||
|
||||
|
||||
_logger.LogInformation("图片生成任务完成,TaskId: {TaskId}", args.TaskId);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user