Use LangChain with Keywords AI
GoogleGenAI
client, making sure to set the apiKey
to your Keywords AI key and the baseUrl
within httpOptions
to the Keywords AI endpoint for Google.baseUrl
can be either https://api.keywordsai.co/api/google
or https://endpoint.keywordsai.co/api/google
.genAI
instance to make requests to Google’s models.
model
parameter in your request.
extra_body
of your request. This is not natively supported by the Google GenAI SDK, so you may need to make a custom request or use a different library that allows modifying the request body.
generateContent
call.