mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	Fix llamacpp server
This commit is contained in:
		@@ -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 };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user