gemini-ai
gemini-ai copied to clipboard
How to modify the base_address?
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 } )