Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
iceljc committed Jul 19, 2024
1 parent bb9feb2 commit 4311eaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task<RoleDialogModel> GetImageGeneration(Agent agent, RoleDialogMod
GeneratedImages = generatedImages
};

return responseMessage;
return await Task.FromResult(responseMessage);
}

private (string, int, ImageGenerationOptions) PrepareOptions(RoleDialogModel message)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public async Task<RoleDialogModel> GetImageVariation(Agent agent, RoleDialogMode
var (imageCount, options) = PrepareOptions();
var imageClient = client.GetImageClient(_model);

var response = await imageClient.GenerateImageVariationsAsync(image, imageFileName, imageCount, options);
var response = imageClient.GenerateImageVariations(image, imageFileName, imageCount, options);
var values = response.Value;

var generatedImages = new List<ImageGeneration>();
Expand Down

0 comments on commit 4311eaf

Please sign in to comment.