Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comment and prevent IndexOutOfBounds exception in ImageResponse #706

Open
devholic22 opened this issue May 10, 2024 · 0 comments
Open

Comments

@devholic22
Copy link
Contributor

devholic22 commented May 10, 2024

Expected Behavior

Previously, an IndexOutOfBounds exception might occur if the developer using the getResult function, I modified returns null. (if imageGenerations is empty)

Current Behavior

In this version, the getResult function returns index element number 0 of imageGenerations directly.

Context

  • I added comments to make it easier to understand. (I referred to ChatResponse.)
  • I modified to return null if imageGenerations is empty.
  • I modified toString like ChatResponse format.

please see #745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant