From a58afd061db45678fcf299c3d42f80656ce7e225 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 19 Aug 2025 21:28:11 +0300 Subject: llm/copilot: add required headers and update default model\n\n- Send X-GitHub-Api-Version and User-Agent headers for Copilot requests\n- Default Copilot model to gpt-4o-mini (avoid non-existent 'codex'/'gpt-4.1')\n- README and config.json.example: update Copilot defaults and guidance\n\nNote: Copilot provider expects Copilot-issued auth; for public access use GitHub Models via OpenAI-compatible endpoint. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2758536..e9c53c5 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Hexai exposes a simple LLM provider interface. It supports OpenAI, GitHub Copilo "trigger_characters": [".", ":", "/", "_", ";", "?"], "coding_temperature": 0.2, "provider": "ollama", - "copilot_model": "gpt-4.1", + "copilot_model": "gpt-4o-mini", "copilot_base_url": "https://api.githubcopilot.com", "copilot_temperature": 0.2, "openai_model": "gpt-4.1", @@ -64,7 +64,7 @@ Ensure `OPENAI_API_KEY` or `COPILOT_API_KEY` is set in your environment accordin - Required: `COPILOT_API_KEY` — provided via environment variable only. - In config file: - - `copilot_model` — model name (default: `gpt-4.1`). + - `copilot_model` — model name (default: `gpt-4o-mini`). - `copilot_base_url` — API base (default: `https://api.githubcopilot.com`). - `copilot_temperature` — default temperature (coding-friendly default `0.2`). -- cgit v1.2.3