OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: invalid embedding config: 'NoneType' object is not callable

Open PaulNgo-BlueOC opened this issue 3 months ago • 2 comments

Issue Origin

Observed or reproduced in a real environment

Bug Description

{
  "embedding": {
    "dense": {
      "provider": "gemini",
      "model": "gemini-embedding-2-preview",
      "api_key": "KEY",
      "dimension": 3072
    }
  },
  "vlm": {
    "provider": "gemini",
    "model": "gemini-3.1-pro-preview",
    "api_key": "KEY"
  }
}

Steps to Reproduce

openviking-server doctor

Expected Behavior

work

Actual Behavior

not work

Minimal Reproducible Example


Error Logs

OpenViking Doctor

  Config:         PASS  C:\Users\hflbt\.openviking\ov.conf
  Python:         PASS  3.12.5 (>= 3.10 required)
  Native Engine:  PASS  variant=x86_sse3
  AGFS:           PASS  AGFS SDK 0.1.7
  Authentication: PASS  dev: 1 passed, 0 warned, 0 failed
  Embedding:      FAIL  gemini/gemini-embedding-2-preview dimension=3072 (invalid embedding config: 'NoneType' object is not callable)
                  Fix: Fix embedding.dense provider/model/api_base/dimension in ov.conf
  VLM:            PASS  gemini/gemini-3.1-pro-preview
  Ollama:         PASS  not configured
  VikingBot:      PASS  VikingBot aligned with dev OpenViking auth
  Disk:           PASS  68.0 GB free in C:\Users\hflbt\.openviking

  1 check(s) failed. See above for fix suggestions.

OpenViking Version

latest

Python Version

3.12

Operating System

Windows

Model Backend

Other

Additional Context

windows 11, no wsl

PaulNgo-BlueOC avatar Aug 21 '26 11:08 PaulNgo-BlueOC

Sorry for tagging you but do you know the plan of fixing this @sponge225 ?

PaulNgo-BlueOC avatar Aug 27 '26 08:08 PaulNgo-BlueOC

Thanks for the report. This looks like the Gemini embedding optional dependency is missing, not an invalid embedding config.

Please try installing the Gemini extra and run doctor again:

pip install "openviking[gemini]"

or install the dependency directly:

pip install google-genai

After that, rerun:

openviking-server doctor

The current error message is misleading because GeminiDenseEmbedder becomes None when google-genai is not installed, and the doctor command reports that as invalid embedding config. We will improve the diagnostic message separately so it names the missing dependency directly.

sponge225 avatar Aug 27 '26 10:08 sponge225