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
@xslingcn you could use the streamGenerateContent endpoint and concatenate all returned parts (excluding the last one, which seems to be affected by the issue i described)
Description of the bug:
when the
Candidate.finishReason
response field is not set toSTOP
, theCandidate.content
is missing.example reproduction
Actual vs expected behavior:
the response to this request is currently
the
candidates[0].content
field is expected to contain the first generated token (asmaxOutputTokens
was set to1
), but is missingAny other information you'd like to share?
this started happening between 2024-01-12 and 2024-01-14 on the
v1beta
API versionThe text was updated successfully, but these errors were encountered: