Code Monkey home page Code Monkey logo

Comments (8)

feedain9 avatar feedain9 commented on June 1, 2024

You need a proxy or a vpn in the country which are allowed by Google Gemini

from gpt4free.

iG8R avatar iG8R commented on June 1, 2024

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.

hlohaus avatar hlohaus commented on June 1, 2024

The proxy support is the native way. ?

from gpt4free.

iG8R avatar iG8R commented on June 1, 2024

:) I meant that if g4f could access the GeminiPro API through VertexAPI, that would be considered the native way.

from gpt4free.

hlohaus avatar hlohaus commented on June 1, 2024

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.

iG8R avatar iG8R commented on June 1, 2024

Thank you.
I'll try it and report later.

from gpt4free.

github-actions avatar github-actions commented on June 1, 2024

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.

github-actions avatar github-actions commented on June 1, 2024

Closing due to inactivity.

from gpt4free.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.