Merge pull request #4929 from continuedev/dallin/clf
yaml contextlength fix
This commit is contained in:
commit
f7c8cf54d3
2 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,9 @@ import { AssistantUnrolled, ModelConfig } from "@continuedev/config-yaml";
|
|||
|
||||
import { SerializedContinueConfig } from "../..";
|
||||
|
||||
/*
|
||||
TODO this is not functional
|
||||
*/
|
||||
export function convertConfigJsonToConfigYaml(
|
||||
configJson: SerializedContinueConfig,
|
||||
): AssistantUnrolled {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ async function modelConfigToBaseLLM(
|
|||
|
||||
let options: LLMOptions = {
|
||||
...rest,
|
||||
// contextLength: model.defaultCompletionOptions?.contextLength ?? undefined,
|
||||
contextLength: model.defaultCompletionOptions?.contextLength,
|
||||
completionOptions: {
|
||||
...(model.defaultCompletionOptions ?? {}),
|
||||
model: model.model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue