From a4f2880f3872cecf9ff08c5c96c1fd9446560605 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:10:53 -0500 Subject: [PATCH] tweak genai --- docs/docs/configuration/genai/config.md | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/docs/docs/configuration/genai/config.md b/docs/docs/configuration/genai/config.md index 5b5fe7edfb..d54f6a464e 100644 --- a/docs/docs/configuration/genai/config.md +++ b/docs/docs/configuration/genai/config.md @@ -19,28 +19,15 @@ genai: provider: ollama base_url: http://localhost:11434 model: qwen3-vl:4b + roles: + - descriptions + - embeddings + - chat ``` The examples on this page all use `my_provider`, but the name is arbitrary and is only used to reference the provider elsewhere in the config (for example, `semantic_search.model`). -Each provider handles one or more **roles**: `chat`, `descriptions`, and `embeddings`. A provider handles all three by default, and each role may be assigned to exactly one provider. Define a single provider if you want it to do everything, or split the roles across several providers using the `roles` option: - -```yaml -genai: - local: - provider: ollama - base_url: http://localhost:11434 - model: qwen3-vl:4b - roles: - - descriptions - - embeddings - cloud: - provider: gemini - api_key: "{FRIGATE_GEMINI_API_KEY}" - model: gemini-2.5-flash - roles: - - chat -``` +Each provider handles one or more **roles**: `chat`, `descriptions`, and `embeddings`. A provider handles all three by default, and each role may be assigned to exactly one provider. Define a single provider if you want it to do everything, or split the roles across several providers using the `roles` option. If the provider you choose requires an API key, you may either directly paste it in your configuration, or store it in an environment variable prefixed with `FRIGATE_`.