From 765eda955eb811d08d867ff4d3914fc6d60c22dd Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 16 Aug 2025 23:16:54 +0300 Subject: 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. --- config.json.example | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config.json.example (limited to 'config.json.example') 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" +} + -- cgit v1.2.3