From 6d29ac7e4b2604b5c7df50f33f8ef2357709faf2 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 18 Aug 2025 09:13:41 +0300 Subject: feat(lsp): add coding_temperature knob and remove hardcoded temps\n\n- Add to app config and server options.\n- Use in LSP code actions and completions.\n- Default to provider temperature when not set.\n- Update README and config.json.example. --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index cb74f95..b8a85a4 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Hexai exposes a simple LLM provider interface. It supports OpenAI, GitHub Copilo "log_preview_limit": 100, "no_disk_io": true, "trigger_characters": [".", ":", "/", "_", ";", "?"], + "coding_temperature": 0.2, "provider": "ollama", "copilot_model": "gpt-4.1", "copilot_base_url": "https://api.githubcopilot.com", @@ -39,6 +40,7 @@ Hexai exposes a simple LLM provider interface. It supports OpenAI, GitHub Copilo * context_mode: minimal | window | file-on-new-func | always-full * provider: openai | copilot | ollama +* coding_temperature: single knob for LSP requests (optional; default uses provider temperature) * openai_model, openai_base_url, openai_temperature: OpenAI-only options * copilot_model, copilot_base_url, copilot_temperature: Copilot-only options * ollama_model, ollama_base_url, ollama_temperature: Ollama-only options @@ -84,8 +86,9 @@ Ensure `OPENAI_API_KEY` or `COPILOT_API_KEY` is set in your environment accordin `ollama_temperature` to override. Valid ranges depend on the provider, but typically `0.0`–`2.0`. * LSP vs CLI: The LSP sometimes overrides temperature for specific actions - (e.g., `0.1`–`0.2` for completions). The CLI uses the configured provider - default unless you change it. + using `coding_temperature` (if set). If `coding_temperature` is not set, + LSP calls use the provider default temperature. The CLI uses the configured + provider default unless you change it. Recommended ranges and use cases: -- cgit v1.2.3