Skip to content

Commit

Permalink
Increase Vision file size limit to 300KB
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan authored Dec 22, 2023
1 parent 01dc873 commit 3b6ebdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BotNet.Services/BotCommands/OpenAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,9 +1080,9 @@ await botClient.GetInfoAndDownloadFileAsync(
cancellationToken: cancellationToken);
byte[] originalImage = originalImageStream.ToArray();

// Limit input image to 200KB
if (originalImage.Length > 200 * 1024) {
return (null, "Image larger than 200KB");
// Limit input image to 300KB
if (originalImage.Length > 300 * 1024) {
return (null, "Image larger than 300KB");
}

// Decode image
Expand Down

0 comments on commit 3b6ebdd

Please sign in to comment.