diff --git a/core/autocomplete/completionProvider.ts b/core/autocomplete/completionProvider.ts index c5f973692..dadacf6f1 100644 --- a/core/autocomplete/completionProvider.ts +++ b/core/autocomplete/completionProvider.ts @@ -119,10 +119,10 @@ export async function getTabCompletion( llm.useLegacyCompletionsEndpoint = true; } else if ( llm.providerName === "free-trial" && - llm.model !== "starcoder2-7b" + llm.model !== "starcoder-7b" ) { throw new Error( - "The only free trial model supported for tab-autocomplete is starcoder2-7b.", + "The only free trial model supported for tab-autocomplete is starcoder-7b.", ); } if (!llm) return; diff --git a/core/llm/llms/FreeTrial.ts b/core/llm/llms/FreeTrial.ts index 62fccecdb..05cec040e 100644 --- a/core/llm/llms/FreeTrial.ts +++ b/core/llm/llms/FreeTrial.ts @@ -22,7 +22,7 @@ class FreeTrial extends BaseLLM { presence_penalty: options.presencePenalty, max_tokens: options.maxTokens, stop: - options.model === "starcoder2-7b" + options.model === "starcoder-7b" ? options.stop : options.stop?.slice(0, 2), temperature: options.temperature,