mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-30 11:23:26 +08:00
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:
1 parent
88522acbcb
commit
f3f6509560
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user