langchain-ai / langchain-google

MIT License
117 stars 149 forks source link

Adding proxy #548

Open simonwitt98 opened 1 month ago

simonwitt98 commented 1 month ago

How can i specify company proxies for the LLM call or set ssl verification to False?

Setting async client or httpx_client in ChatGoogleGenerativeAI initialisation does not work.

lkuligin commented 3 weeks ago

you can do this with ChatVertexAI

coder-pm commented 6 days ago

ChatVertexAI does not have the any options to pass custom http client. Looks like there is no way to accomplish that now.

EDIT: I've managed to get it working but I had to create a custom google.auth.GoogleAuth with custom transporter and put it in the authOptions.authClient options of the ChatVertexAI.