improve /v1/completions api with stop: "\nHuman" so that it works better with selfhostedAI like [RWKV-Runner](https://github.com/josStorer/RWKV-Runner)

This commit is contained in:
josc146
2023-05-22 11:35:24 +08:00
parent 88522acbcb
commit f3f6509560
+1
View File
@@ -51,6 +51,7 @@ export async function generateAnswersWithGptCompletionApi(
stream: true,
max_tokens: config.maxResponseTokenLength,
temperature: config.temperature,
stop: '\nHuman',
}),
onMessage(message) {
console.debug('sse message', message)