mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
ensure history is unique to voice
This commit is contained in:
@@ -138,7 +138,7 @@ async function findTtsGenerationInHistory(message, voiceId) {
|
||||
for (const history of ttsHistory) {
|
||||
const text = history.text;
|
||||
const itemId = history.history_item_id;
|
||||
if (message === text) {
|
||||
if (message === text && history.voice_id == voiceId) {
|
||||
console.info(`Existing TTS history item ${itemId} found: ${text} `)
|
||||
return itemId;
|
||||
}
|
||||
|
Reference in New Issue
Block a user