We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using streaming API, the FinishReason in the response is not correctly set when the reason should be FinishReasonMaxTokens.
This happens because on the last response, the content is empty, which leads it to return early without recording the FinishReason.
langchaingo/llms/googleai/googleai.go
Line 258 in b6ba669
The text was updated successfully, but these errors were encountered:
Thanks for the bug report, this should be straightforward to implement.
Sorry, something went wrong.
openai: Render single text content parts directly
28bfebb
Fixes #728
openai: Render single text content parts directly (#734)
1261877
Successfully merging a pull request may close this issue.
When using streaming API, the FinishReason in the response is not correctly set when the reason should be FinishReasonMaxTokens.
This happens because on the last response, the content is empty, which leads it to return early without recording the FinishReason.
langchaingo/llms/googleai/googleai.go
Line 258 in b6ba669
The text was updated successfully, but these errors were encountered: