Vigiora

Denne side findes endnu ikke på Dansk. Den vises på engelsk.

AI modelSiden 1.8.0

Choose which AI model answers the assistant and describes pictures. Use Vigiora cloud AI, a local Ollama model, or your own API key.

I appen: /system

By default, Guardian chat (the assistant) and the descriptions of what cameras see run on Vigiora cloud AI. From Vigiora Server 1.8.0, an admin can choose another model in Settings → AI and add-ons → AI model. Nothing changes until an admin saves a different choice.

The three choices#

ChoiceWhat it isWhere questions and pictures goVigiora AI credits
Vigiora (default)Vigiora cloud AI. Nothing to set up.Vigiora cloud AIUsed
Local (Ollama)A model you run with Ollama on this computer or on your network.Nowhere. They stay on your network.Not used
Your own keyOpenAI, Google Gemini, Anthropic or another OpenAI-compatible provider, with your API key.To that provider onlyNot used. The provider bills you.

What runs on your model#

  • The assistant. Every Guardian chat answer, the tools it uses (search the records, look at a camera now, the weather from a camera), the conversation title and what it remembers about you.
  • Picture descriptions. The Guardian descriptions made when a camera sees motion or when you capture one by hand, the check of your camera alert rules, and the API's describe-image. A clip goes to your model as up to 4 still pictures, because these models read pictures, not video. The automation step Guardian takes a look is one of these descriptions.
  • Privacy masks. Every picture sent to your model has the camera's privacy masks painted on before it leaves the server.

What still uses Vigiora cloud AI#

Everything else keeps using Vigiora cloud AI: speech to text and voices, AI Live, floor plans, and audio alert rules. While your own model is chosen, the assistant also does not search older descriptions by meaning. It searches them by words instead.

Set up Ollama#

  1. Install Ollama

    Install Ollama on the Vigiora server or on another computer on your network. A computer with a graphics card is much faster.

  2. Pull a model

    Pull a model that can read pictures and use tools. On the Ollama website, the model page lists these as vision and tools. A small one that works:

    ollama pull qwen3-vl:8b
  3. Let it listen on the network

    If Ollama runs on another computer, start it with OLLAMA_HOST=0.0.0.0 ollama serve and allow port 11434 in that computer's firewall.

  4. Choose it in Vigiora

    Open Settings → AI and add-ons → AI model and choose Local (Ollama). The Ollama address is http://127.0.0.1:11434 by default. Click Load models, pick the model, click Test, then Save.

Use your own key#

Open Settings → AI and add-ons → AI model and choose Your own key. Pick the Provider, paste your API key, type the Model (or click Load models), click Test, then Save.

  • OpenAI and Google Gemini use their standard OpenAI-compatible addresses.
  • Anthropic works through its OpenAI-compatible endpoint. Anthropic describes that endpoint as meant mainly for testing.
  • Other is any OpenAI-compatible server (LM Studio, vLLM, llama.cpp server, LocalAI). Type its address, which ends in /v1. The key is optional there.

The key is stored encrypted on your server and is never shown again. The page shows only that it is saved and its last 4 characters. If you change the provider or its address, type the key again: a saved key is never sent to a new address.

Local models#

  • Context size. Vigiora asks Ollama for a context large enough for the request. The assistant's prompt is about 9,000 to 11,000 tokens, so Ollama's own default of 4,096 is not used.
  • The first answer is slow. After a model is loaded, the first answer takes longer. On an Apple M1 Max it took about 30 seconds for a 7B model and about 74 seconds for a 14B model. Later answers take a few seconds.
  • What the model needs. The assistant needs tool support and picture descriptions need vision support. The Test button shows which of the two the chosen model has.
  • Waiting. Chat with your own model may take up to 6 minutes before it gives up. It then says why: the model did not answer in time, it cannot be reached, or it answered with an error.
  • Away from home. When you reach the server through the Cloudflare tunnel, a single request ends after 100 seconds. A cold first answer from a large model can be cut when you are away from home.

The Test button#

Test sends three small requests and tells you what works: Text, Pictures and Tools (look at cameras, search recordings, set alerts). Nothing from your cameras is sent by the test. Vigiora remembers the result and asks your model only for what it can do.

When your model cannot do something#

  • No tools. The assistant still answers. It says that it cannot look at cameras, search recordings or change anything.
  • No pictures. Picture descriptions are not made, and "look now" says the model cannot read pictures.
  • Fall back to Vigiora when my model cannot do it. Off by default. When on, only the requests that your model cannot do (pictures or tools) go to Vigiora cloud AI and use Vigiora credits. If your model is off or slow, you get a plain error and nothing is sent elsewhere.

Privacy#

  • With a local model, assistant questions and picture descriptions do not leave your network.
  • With your own key, they go to the provider you chose, and to no one else.
  • Questions and answers are never written to the logs.
  • Addresses must start with http:// or https://. Your own computer and private network addresses are allowed. A key is sent only over https, or to this computer or your private network.

API#

From API 1.112.0, admins can read and change the setting with GET and PATCH /api/v1/system/ai-model, and use POST /api/v1/system/ai-model/actions/test and POST /api/v1/system/ai-model/actions/list-models. The key can be written but never read. While human in the loop is on, an AI agent must ask before it changes the model.

Rediger denne side på GitHub