summaryrefslogtreecommitdiff
path: root/config.json.example
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-08-16 23:16:54 +0300
committerPaul Buetow <paul@buetow.org>2025-08-16 23:16:54 +0300
commit765eda955eb811d08d867ff4d3914fc6d60c22dd (patch)
treefdc87da6af9d86dbda2ea9ab08244e93fd167188 /config.json.example
parent1b01e35c34b953cbf51298f4650dc3215c382a4f (diff)
refactor(config): drop env-based config (except OPENAI_API_KEY)
- Switch to config-file-only; only OPENAI_API_KEY read from env.\n- llm: replace env autodetect with Config + NewFromConfig; add newOpenAI/newOllama.\n- lsp: NewServer now accepts injected llm.Client.\n- cli: remove env overrides; extend appConfig with provider-specific fields; build client from config + OPENAI_API_KEY.\n- docs: update README (config-only, defaults to OpenAI, minimal example); simplify flags table.\n- add config.json.example.\n- prompts: enforce ;text; (no spaces) and add ;;text; to remove entire line; tests added.
Diffstat (limited to 'config.json.example')
-rw-r--r--config.json.example17
1 files changed, 17 insertions, 0 deletions
diff --git a/config.json.example b/config.json.example
new file mode 100644
index 0000000..4dda9d0
--- /dev/null
+++ b/config.json.example
@@ -0,0 +1,17 @@
+{
+ "max_tokens": 4000,
+ "context_mode": "file-on-new-func",
+ "context_window_lines": 120,
+ "max_context_tokens": 4000,
+ "log_preview_limit": 100,
+ "no_disk_io": true,
+
+ "provider": "openai",
+
+ "openai_model": "gpt-4.1",
+ "openai_base_url": "https://api.openai.com/v1",
+
+ "ollama_model": "qwen2.5-coder:latest",
+ "ollama_base_url": "http://localhost:11434"
+}
+