-
Notifications
You must be signed in to change notification settings - Fork 763
fix: stream in requestParams for google provider #1358
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
Conversation
* google request does not have the stream: true field in its request.
Fix correctly adds streaming parameter to requestParams for Google provider. Change is minimal and targeted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix stream handling in requestParams for Google provider and adjust log levels
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the correct fix would be to infer teh value here
gateway/src/middlewares/log/index.ts
Line 60 in f6bc63c
const response = requestOptionsArray[0].requestParams.stream |
you could try |
Hi @narengogi, Sorry I lost track of this PR and didn't see your comment last week. I would still like to fix this issue and curious if i could still make the change and wondering why this PR is closed. Is the issue fixed properly in another PR? |
Description
without this I get the error log because stream is not in request params.
gateway/src/middlewares/log/index.ts
Line 60 in f6bc63c
Motivation
Type of Change
How Has This Been Tested?
Screenshots (if applicable)
Checklist
Related Issues