From 1376be67433100831f29d4025f42d716630397a4 Mon Sep 17 00:00:00 2001 From: Aditya Mitra <61635505+uinstinct@users.noreply.github.com> Date: Tue, 10 Mar 2026 13:02:52 +0530 Subject: [PATCH] fix: edit mode throwing error for xai provider (#11002) Co-authored-by: Dallin Romney --- core/llm/llms/xAI.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/llm/llms/xAI.ts b/core/llm/llms/xAI.ts index 13a69c5fc..c64d9f0bd 100644 --- a/core/llm/llms/xAI.ts +++ b/core/llm/llms/xAI.ts @@ -7,6 +7,10 @@ class xAI extends OpenAI { static defaultOptions: Partial = { apiBase: "https://api.x.ai/v1/", }; + + supportsCompletions(): boolean { + return false; + } } export default xAI;