🚚 again, starcoder, not 2
This commit is contained in:
parent
3ccd0e0227
commit
239f8449a4
2 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue