From d4f39e85c22c23f3388dd15e4be07c5e1c3697e8 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 4 Jun 2025 12:13:26 -0700 Subject: [PATCH 1/2] disable completions for apply --- core/llm/llms/stubs/ContinueProxy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/llm/llms/stubs/ContinueProxy.ts b/core/llm/llms/stubs/ContinueProxy.ts index e07668ffd..ea9178d48 100644 --- a/core/llm/llms/stubs/ContinueProxy.ts +++ b/core/llm/llms/stubs/ContinueProxy.ts @@ -85,6 +85,9 @@ class ContinueProxy extends OpenAI { } supportsCompletions(): boolean { + if (this.underlyingProviderName === "relace") { + return false; + } return true; } From 6a978db5c1630257046faafb63bae731f1266728 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Wed, 4 Jun 2025 12:36:47 -0700 Subject: [PATCH 2/2] only support completions through continue proxy for vllm --- core/llm/llms/stubs/ContinueProxy.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/llm/llms/stubs/ContinueProxy.ts b/core/llm/llms/stubs/ContinueProxy.ts index ea9178d48..3506dcb32 100644 --- a/core/llm/llms/stubs/ContinueProxy.ts +++ b/core/llm/llms/stubs/ContinueProxy.ts @@ -85,10 +85,13 @@ class ContinueProxy extends OpenAI { } supportsCompletions(): boolean { - if (this.underlyingProviderName === "relace") { - return false; + // This was a hotfix and contains duplicate logic from class-specific completion support methods + if (this.underlyingProviderName === "vllm") { + return true; } - return true; + // other providers that don't support completions include groq, mistral, nvidia, deepseek, etc. + // For now disabling all except vllm + return false; } supportsFim(): boolean {