Comments (8)
You need a proxy or a vpn in the country which are allowed by Google Gemini
from gpt4free.
Sure, I already use Netlify as a proxy, but it would be way more convenient if g4f had native support to workaround this issue.
from gpt4free.
The proxy support is the native way. ?
from gpt4free.
:) I meant that if g4f could access the GeminiPro API through VertexAPI, that would be considered the native way.
from gpt4free.
I can't create a Vertex Account for me. Sorry
Edit: You have to change only the Url maybe:
const API_ENDPOINT = "us-central1-aiplatform.googleapis.com";
const URL = https://${API_ENDPOINT}/v1beta1/projects/${process.env.GOOGLE_KEY}/locations/us-central1/publishers/google/models/gemini-pro:streamGenerateContent
;
edit: I added api_base as config:
#1630
Example
api_base = "https://us-central1-aiplatform.googleapis.com/v1beta1/projects/${process.env.GOOGLE_KEY}/locations/us-central1/publishers/google"
from gpt4free.
Thank you.
I'll try it and report later.
from gpt4free.
Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.
from gpt4free.
Closing due to inactivity.
from gpt4free.
Related Issues (20)
- CaptchaChallenge: User needs to solve CAPTCHA to continue HOT 2
- Image Generation. Invalid auth. SNlM0e not found HOT 1
- liaobots does not work HOT 5
- can not generate an image HOT 1
- Model Selection Error with Direct Provider Specification HOT 3
- Task destroyed but it is pending! HOT 4
- Command-r-plus not working HOT 6
- bing: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) HOT 2
- Gemini Provider not working HOT 7
- chat18.aichatos8.xyz not worked HOT 2
- An error occurred when generating a picture HOT 2
- Bing Failed to perform, curl: (77) error HOT 5
- can't run API server successfully HOT 8
- 新版本的gpt4无法使用 HOT 1
- export G4F_PROXY how to added proxy ? HOT 1
- Apple Silicone Neural Engine: Core ML model package format HOT 2
- How to use vision models in API?
- We block VPNs to prevent spam and abuse. If you are using a VPN, please disable it to access Perplexity. HOT 2
- ResponseStatusError: Response 401: {"message":"401 Unauthorized"}
- Bing TypeError: Received message 257:None is not str HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpt4free.