gemini-ai icon indicating copy to clipboard operation
gemini-ai copied to clipboard

How to modify the base_address?

Open gith-u-b opened this issue 7 months ago • 1 comments

Hello,

I want to change the default base_url(https://generativelanguage.googleapis.com/v1) to https://www.wobuaixuexi.com/. How can I do this? Thank you.

client = Gemini.new( credentials: { base_address: ENV['GEMINI_BASE_URL'], service: 'generative-language-api', api_key: ENV['GEMINI_API_KEY'] }, options: { model: 'gemini-1.5-pro', server_sent_events: true } )

image

gith-u-b avatar Jul 23 '24 02:07 gith-u-b