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

Google Gemini #161

Closed
egoran2 opened this issue Oct 7, 2024 · 3 comments · Fixed by #272 · May be fixed by lloydchang/ErikBjare-gptme#2
Closed

Google Gemini #161

egoran2 opened this issue Oct 7, 2024 · 3 comments · Fixed by #272 · May be fixed by lloydchang/ErikBjare-gptme#2

Comments

@egoran2
Copy link

egoran2 commented Oct 7, 2024

Hello, any ways to use gemini api as provider?
Thank you

@ErikBjare
Copy link
Owner

Only via OpenRouter at the moment.

I won't implement first-party support anytime soon, but will accept contributions.

@ErikBjare ErikBjare closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2024
lloydchang added a commit to lloydchang/ErikBjare-gptme that referenced this issue Nov 24, 2024
@lloydchang
Copy link
Contributor

Relates to #272

@lloydchang
Copy link
Contributor

Hi @egoran2,

When you find time, please test the following steps on your computer?

  1. Clone the repository:

    gh repo clone ErikBjare/gptme
    
  2. Navigate to the project directory:

    cd gptme
    
  3. Check out the pull request:

    gh pr checkout 272 --repo ErikBjare/gptme
    
  4. Create a virtual environment:

    python -m venv venv
    
  5. Activate the virtual environment:

    source ./venv/bin/activate
    
  6. Install the required dependencies using Poetry:

    poetry install
    
  7. Run gptme:

    gptme
    

After following these steps, gptme should prompt you with:

New conversation or load previous?

  • Select "New conversation" and press the "Return" key.

Next, gptme should prompt you with:

No API key set for OpenAI, Anthropic, OpenRouter, or Gemini.
You can get one at:

Your OpenAI, Anthropic, OpenRouter, or Gemini API key:

If the GEMINI_API_KEY environment variable is already defined, gptme will use that variable's value instead.

These installation instructions uses pull request #272 because a newer version of gptme (greater than 0.24.0) has not been released yet.

In the meantime, running gptme --version will still show version 0.24.0, regardless of which variant you use:

  • Variant A: Installed via pipx install gptme without Gemini support
  • Variant B: Installed via source ./venv/bin/activate && poetry install with Gemini support

To differentiate between the two variants of the same version (0.24.0), please follow the above instructions until a newer version of gptme is released.

I hope this helps!

Thanks!

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