From 8b397d080499a04f247d0599e100415ff821c926 Mon Sep 17 00:00:00 2001 From: Martin Mois Date: Thu, 4 Apr 2024 21:05:35 +0200 Subject: [PATCH] #1073: update outdated documentation (#1074) --- docs/docs/model-setup/configuration.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/docs/model-setup/configuration.md b/docs/docs/model-setup/configuration.md index b1a35f56a..c378c7b01 100644 --- a/docs/docs/model-setup/configuration.md +++ b/docs/docs/model-setup/configuration.md @@ -167,7 +167,7 @@ export function modifyConfig(config: Config): Config { title: "My Custom LLM", model: "mistral-7b", }, - streamComplete: async function* (prompt, options) { + streamCompletion: async function* (prompt: string, options: CompletionOptions) { // Make the API call here // Then yield each part of the completion as it is streamed @@ -178,5 +178,6 @@ export function modifyConfig(config: Config): Config { } }, }); + return config; } ```