Skip to content

Unable to select Gemini as a provider #98

@tuxthepenguin84

Description

@tuxthepenguin84

I'm unable to select or use Gemini as a provider

I'm using a Docker deployment, config:

services:
  open-notebookdb:
    image: surrealdb/surrealdb:v2
    container_name: surrealdb
    networks:
      - proxy
    #ports:
    #  - "8000:8000"
    volumes:
      - ./data/surreal_data:/mydata
    command: start --user root --pass pass rocksdb:/mydata/mydatabase.db
    user: root

  open-notebook:
    image: lfnovo/open_notebook:latest
    container_name: open-notebook
    restart: unless-stopped
    depends_on:
      - open-notebookdb
    networks:
      - proxy
    #ports:
    #  - 5055:5055
    #  - 8502:8502
    volumes:
      - ./data/notebook_data:/app/data
    environment:
      - GOOGLE_API_KEY=...
      - OPENAI_API_KEY=...
      - SURREAL_URL=ws://open-notebookdb:8000/rpc
      - SURREAL_USER=root
      - SURREAL_PASSWORD=pass
      - SURREAL_NAMESPACE=open_notebook
      - SURREAL_DATABASE=production

networks:
  proxy:
    driver: overlay
    external: true

I'm sort of scratching my head what I'm doing wrong but I can't seem to figure it out, I have no issues with selecting OpenAI though.

There's also a little bit of confusion in the docs regarding what the env var should be for gemini, is it GOOGLE_API_KEY or GEMINI_API_KEY, I think either should work though as it shows up in the available providers using either one (but again I can't select it as a provider). I've also tried putting both GOOGLE_API_KEY & GEMINI_API_KEY at the same time, again no luck.

Available Providers

[
0:"openai"
1:"gemini"
]

docker.md says GOOGLE_API_KEY
env.example says GEMINI_API_KEY

Confusion might have come from this maybe? #45 (comment)

I'm not seeing anything in the logs that stands out there is an issue with my gemini api key, it's a brand new key I generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions