mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-03 19:29:42 +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:
@@ -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