mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-05 20:29:22 +01:00
Fix llamacpp server
This commit is contained in:
parent
c03966d19a
commit
f1cadfde2b
@ -694,7 +694,7 @@ async function generateTextGenWithStreaming(generate_data, signal) {
|
||||
} else {
|
||||
const newText = data?.choices?.[0]?.text || data?.content || '';
|
||||
text += newText;
|
||||
logprobs = parseTextgenLogprobs(newText, data.choices[0]?.logprobs);
|
||||
logprobs = parseTextgenLogprobs(newText, data.choices?.[0]?.logprobs);
|
||||
}
|
||||
|
||||
yield { text, swipes, logprobs };
|
||||
|
Loading…
x
Reference in New Issue
Block a user