From 3fed5fca8283765b749c72289a30ea4939619057 Mon Sep 17 00:00:00 2001 From: jh-block Date: Wed, 4 Mar 2026 13:07:11 -0500 Subject: [PATCH] docs: add GOOSE_INPUT_LIMIT environment variable documentation (#7299) --- documentation/docs/guides/environment-variables.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/documentation/docs/guides/environment-variables.md b/documentation/docs/guides/environment-variables.md index 64a1e9f325..06d8720ede 100644 --- a/documentation/docs/guides/environment-variables.md +++ b/documentation/docs/guides/environment-variables.md @@ -344,6 +344,7 @@ These variables allow you to override the default context window size (token lim | Variable | Purpose | Values | Default | |----------|---------|---------|---------| | `GOOSE_CONTEXT_LIMIT` | Override context limit for the main model | Integer (number of tokens) | Model-specific default or 128,000 | +| `GOOSE_INPUT_LIMIT` | Override input prompt limit for ollama requests (maps to `num_ctx`) | Integer (number of tokens) | Falls back to `GOOSE_CONTEXT_LIMIT` or model default | | `GOOSE_LEAD_CONTEXT_LIMIT` | Override context limit for the lead model in [lead/worker mode](/docs/tutorials/lead-worker) | Integer (number of tokens) | Falls back to `GOOSE_CONTEXT_LIMIT` or model default | | `GOOSE_WORKER_CONTEXT_LIMIT` | Override context limit for the worker model in lead/worker mode | Integer (number of tokens) | Falls back to `GOOSE_CONTEXT_LIMIT` or model default | | `GOOSE_PLANNER_CONTEXT_LIMIT` | Override context limit for the [planner model](/docs/guides/creating-plans) | Integer (number of tokens) | Falls back to `GOOSE_CONTEXT_LIMIT` or model default | @@ -353,6 +354,8 @@ These variables allow you to override the default context window size (token lim ```bash # Set context limit for main model (useful for LiteLLM proxies) export GOOSE_CONTEXT_LIMIT=200000 +# Override ollama input prompt limit +export GOOSE_INPUT_LIMIT=32000 # Set different context limits for lead/worker models export GOOSE_LEAD_CONTEXT_LIMIT=500000 # Large context for planning