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
I searched existing ideas and did not find a similar one
I added a very descriptive title
I've clearly described the feature request and motivation for it
Feature request
support of adding custom headers on ChatGoogleGenerativeAI
Motivation
My code invokes google genai api by langchain is behind a proxy. I want to add custom headers to perform some data collection on the proxy.
Proposal (If applicable)
The version of @google/generative-ai which @langchain/google-genai depends on is too old. Starting from 0.11.0, @google/generative-ai adds customHeaders field to RequestOptions inteface. Maybe it can be used by ChatGoogleGenerativeAI to support adding custom headers.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Checked
Feature request
support of adding custom headers on ChatGoogleGenerativeAI
Motivation
My code invokes google genai api by langchain is behind a proxy. I want to add custom headers to perform some data collection on the proxy.
Proposal (If applicable)
The version of @google/generative-ai which @langchain/google-genai depends on is too old. Starting from 0.11.0, @google/generative-ai adds
customHeaders
field toRequestOptions
inteface. Maybe it can be used by ChatGoogleGenerativeAI to support adding custom headers.Beta Was this translation helpful? Give feedback.
All reactions