Skip to content

v0.10.0

Compare
Choose a tag to compare
@zuisong zuisong released this 28 Feb 15:05
· 81 commits to main since this release
2f69541
  • gemini-openai-proxy can now act as a reverse proxy for google gemini, which can be useful for people in region that don't have access to the google gemini

    it will request https://generativelanguage.googleapis.com

    curl \
      "http://localhost:8000/v1/models/gemini-pro:generateContent?key=$YOUR_GEMINI_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{"contents":[{"parts":[{"text":"Hello"}]}]}'
  • Service settings can now be passed via apikey, currently the first supported setting is useBeta , which can be set like so

    it will use v1beta version gemini api, https://ai.google.dev/docs/api_versions

    curl http://localhost:8000/v1/chat/completions \
      -H "Authorization: Bearer $YOUR_GEMINI_API_KEY#useBeta" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "gpt-3.5-turbo",
      "messages": [{"role": "user", "content": "Hello"}],
      "temperature": 0.7,"stream":true
      }'

Full Changelog: v0.9.0...v0.10.0