From ecc7880e00a2a735074243d8a664a931d73beace Mon Sep 17 00:00:00 2001 From: "stuart.warren" Date: Wed, 13 Aug 2025 15:11:58 +0100 Subject: [PATCH] fix(copilot-chat): fix default model to one supported it seems that gpt-4 is no longer supported https://docs.github.com/en/copilot/reference/ai-models/supported-models using gpt-4 throws 400 Bad Request errors fixes nix-community#3623 --- plugins/by-name/copilot-chat/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/by-name/copilot-chat/default.nix b/plugins/by-name/copilot-chat/default.nix index af56b5d4..44e8e7b1 100644 --- a/plugins/by-name/copilot-chat/default.nix +++ b/plugins/by-name/copilot-chat/default.nix @@ -31,8 +31,8 @@ lib.nixvim.plugins.mkNeovimPlugin { System prompt to use. ''; - model = defaultNullOpts.mkStr "gpt-4" '' - GPT model to use, 'gpt-3.5-turbo' or 'gpt-4'. + model = defaultNullOpts.mkStr "gpt-4.1" '' + GPT model to use, 'gpt-3.5-turbo' or 'gpt-4.1'. ''; temperature = defaultNullOpts.mkProportion 0.1 ''