You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/ai/vision/README.md
+48-30Lines changed: 48 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,41 +53,59 @@ The `vision.yml` file is usually kept in the `storage/config` directory (overrid
53
53
54
54
The model `Options` adjust model parameters such as temperature, top-p, and schema constraints when using [Ollama](ollama/README.md) or [OpenAI](openai/README.md):
|`Temperature`| engine default (`0.1` for Ollama) | Controls randomness with a value between `0.01` and `2.0`; not used for OpenAI's GPT-5. |
59
-
|`TopK`| engine default (model-specific) | Limits sampling to the top K tokens to reduce rare or noisy outputs. |
60
-
|`TopP`| engine default (`0.9` for some Ollama label defaults; unset for OpenAI) | Nucleus sampling; keeps the smallest token set whose cumulative probability ≥ `p`. |
61
-
|`MinP`| engine default (unset unless provided) | Drops tokens whose probability mass is below `p`, trimming the long tail. |
62
-
|`TypicalP`| engine default (unset unless provided) | Keeps tokens with typicality under the threshold; combine with TopP/MinP for flow. |
63
-
|`Seed`| random per run (unless set) | Fix for reproducible outputs; unset for more variety between runs. |
64
-
|`RepeatLastN`| engine default (model-specific) | Number of recent tokens considered for repetition penalties. |
65
-
|`RepeatPenalty`| engine default (model-specific) | Multiplier >1 discourages repeating the same tokens or phrases. |
66
-
|`NumPredict`| engine default (Ollama only) | Ollama-specific max output tokens; synonymous intent with `MaxOutputTokens`. |
|`Temperature`| engine default (`0.1` for Ollama) | Controls randomness with a value between `0.01` and `2.0`; not used for OpenAI's GPT-5. |
59
+
|`TopK`| engine default (model-specific) | Limits sampling to the top K tokens to reduce rare or noisy outputs. |
60
+
|`TopP`| engine default (`0.9` for some Ollama label defaults; unset for OpenAI) | Nucleus sampling; keeps the smallest token set whose cumulative probability ≥ `p`. |
61
+
|`MinP`| engine default (unset unless provided) | Drops tokens whose probability mass is below `p`, trimming the long tail. |
62
+
|`TypicalP`| engine default (unset unless provided) | Keeps tokens with typicality under the threshold; combine with TopP/MinP for flow. |
63
+
|`Seed`| random per run (unless set) | Fix for reproducible outputs; unset for more variety between runs. |
64
+
|`RepeatLastN`| engine default (model-specific) | Number of recent tokens considered for repetition penalties. |
65
+
|`RepeatPenalty`| engine default (model-specific) | Multiplier >1 discourages repeating the same tokens or phrases. |
66
+
|`PenalizeNewline`| engine default | Whether to apply repetition penalties to newline tokens. |
67
+
|`PresencePenalty`| engine default (OpenAI-style) | Increases the likelihood of introducing new tokens by penalizing existing ones. |
68
+
|`FrequencyPenalty`| engine default (OpenAI-style) | Penalizes tokens in proportion to their frequency so far. |
Configures the endpoint URL, method, format, and authentication for [Ollama](ollama/README.md), [OpenAI](openai/README.md), and other engines that perform remote HTTP requests:
|`RequestFormat` / `ResponseFormat`| set by engine alias | Explicit values win over alias defaults. |
87
-
|`FileScheme`| set by engine alias (`data` or `base64`) | Controls image transport. |
88
-
|`Disabled`|`false`| Disable the endpoint without removing the model. |
89
-
90
-
> **Authentication:** All credentials and identifiers support `${ENV_VAR}` expansion. `Service.Key` sets `Authorization: Bearer <token>`; `Username`/`Password` injects HTTP basic authentication into the service URI when it is not already present.
|`RequestFormat` / `ResponseFormat`| set by engine alias | Explicit values win over alias defaults. |
105
+
|`FileScheme`| set by engine alias (`data` or `base64`) | Controls image transport. |
106
+
|`Disabled`|`false`| Disable the endpoint without removing the model. |
107
+
108
+
> **Authentication:** All credentials and identifiers support `${ENV_VAR}` expansion. `Service.Key` sets `Authorization: Bearer <token>`; `Username`/`Password` injects HTTP basic authentication into the service URI when it is not already present. When `Service.Key` is empty, PhotoPrism defaults to `OPENAI_API_KEY` (OpenAI engine) or `OLLAMA_API_KEY` (Ollama engine), also honoring their `_FILE` counterparts.
0 commit comments