gemini-to-openai-proxy

command module
v0.0.0-...-74d9340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 15 Imported by: 0

README

gemini-to-openai-proxy

Call Gemini (https://ai.google.dev) embedding models with OpenAI-compatible endpoints

Deployment

Using docker run

To deploy using docker run, you can use the following command:

docker run -d -p 8080:8080 -e GEMINI_API_KEY=<your-gemini-api-key> ghcr.io/cheahjs/gemini-to-openai-proxy:latest

Replace <your-gemini-api-key> with your actual Gemini API key.

Using docker compose

To deploy using docker compose, you can use the provided docker-compose.yaml file. First, create a .env file with the following content:

GEMINI_API_KEY=<your-gemini-api-key>
LISTEN_ADDR=:8080

Then, run the following command:

docker-compose up -d
Using go install

To deploy using go install, you need to have Go installed on your machine. Run the following commands:

go install github.com/cheahjs/gemini-to-openai-proxy@latest
GEMINI_API_KEY=<your-gemini-api-key> LISTEN_ADDR=:8080 gemini-to-openai-proxy

Replace <your-gemini-api-key> with your actual Gemini API key.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL