[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify the base_address? #25

Open
gith-u-b opened this issue Jul 23, 2024 · 1 comment
Open

How to modify the base_address? #25

gith-u-b opened this issue Jul 23, 2024 · 1 comment

Comments

@gith-u-b
Copy link
gith-u-b commented Jul 23, 2024

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
@timabdulla
Copy link

#27 addresses this, if you want to try my branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants