diff --git a/docs/reference.mdx b/docs/reference.mdx index fd6f4e4ec..30b4c0ca8 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -110,6 +110,7 @@ The `models` section defines the language models used in your configuration. Mod - `stop`: An array of stop tokens that will terminate the completion. - `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ and some Ollama models. - `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. + - `keepAlive`: For Ollama, the number of seconds to keep the model loaded after the last request (default: `1800`). - `requestOptions`: HTTP request options specific to the model. diff --git a/packages/config-yaml/src/schemas/models.ts b/packages/config-yaml/src/schemas/models.ts index 89856e35c..8d3555829 100644 --- a/packages/config-yaml/src/schemas/models.ts +++ b/packages/config-yaml/src/schemas/models.ts @@ -59,6 +59,7 @@ export const completionOptionsSchema = z.object({ reasoningBudgetTokens: z.number().optional(), promptCaching: z.boolean().optional(), stream: z.boolean().optional(), + keepAlive: z.number().optional(), }); export type CompletionOptions = z.infer;