diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-18 09:13:41 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-18 09:13:41 +0300 |
| commit | 6d29ac7e4b2604b5c7df50f33f8ef2357709faf2 (patch) | |
| tree | 6a164ee0a7c5a1f726447e8f29ab871af63528a1 /README.md | |
| parent | 3217d2738af345629e7da14c52fa4ee5cb288fe9 (diff) | |
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.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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: |
