You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Expected Behavior
Previously, an
IndexOutOfBounds
exception might occur if the developer using thegetResult
function, I modified returns null. (ifimageGenerations
is empty)Current Behavior
In this version, the
getResult
function returns index element number 0 ofimageGenerations
directly.Context
ChatResponse
.)imageGenerations
is empty.toString
likeChatResponse
format.please see #745
The text was updated successfully, but these errors were encountered: