#1073: update outdated documentation (#1074)

This commit is contained in:
Martin Mois 2024-04-04 21:05:35 +02:00 • committed by GitHub
parent d2fede6129
commit 8b397d0804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}
```