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

Thank you for your amazing work, but instead of putting your name, is it possible to make it put a forward proxy instead? #3

Closed
khfung opened this issue Jan 29, 2024 · 4 comments · Fixed by #4
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@khfung
Copy link

khfung commented Jan 29, 2024

No description provided.

@fjosue4 fjosue4 added enhancement New feature or request good first issue Good for newcomers labels Jan 29, 2024
@fjosue4
Copy link
Owner

fjosue4 commented Jan 29, 2024

Hey @khfung,

Sure thing, I'll keep the name since the idea is to add an initial prompt (not visible) welcoming you with your name which will also work as an API Key validator, but the name will remain optional so no worries. But I'll add a proxy option also optional, I'll try to handle this for today.

@fjosue4 fjosue4 linked a pull request Jan 29, 2024 that will close this issue
@fjosue4
Copy link
Owner

fjosue4 commented Jan 29, 2024

@khfung What's the expected URL you would like to point with a proxy?

https://${proxy ? proxy + '.' : ''}generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=${apiKey}

would it be a dot or a slash before the Google API?

@khfung
Copy link
Author

khfung commented Jan 29, 2024

Some of the country are not on the list of supporting country
So, I would like to have a proxy to bypass regional restrictions
Like allowing user to put an api endpoint proxy instead of the default one

@fjosue4
Copy link
Owner

fjosue4 commented Jan 29, 2024

@khfung I added the proxy feature, as well as an example of what to add in that input. Let me know if that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants