fix: remove client warmup that was blocking TTS requests

This commit is contained in:
posimai 2026-03-25 09:11:48 +09:00
parent 152793e672
commit 0984a87b77
1 changed files with 0 additions and 11 deletions

View File

@ -1009,17 +1009,6 @@ async function loadFeed() {
}); });
speechQueue.push('本日のブリーフィングは以上です。'); speechQueue.push('本日のブリーフィングは以上です。');
// APIキーがあれば表示中の記事をバックグラウンドでウォームアップ
const warmupKey = localStorage.getItem('posimai-brief-apikey');
if (warmupKey) {
const texts = speechQueue.map(t => preprocessText(t));
fetch(API_BASE + '/tts/warmup', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${warmupKey}` },
body: JSON.stringify({ texts, speaker: ttsSpeaker }),
}).catch(() => {});
}
document.getElementById('briefCount').textContent = `${list.length}件`; document.getElementById('briefCount').textContent = `${list.length}件`;
updateArticleDisplay(list[0], 0); updateArticleDisplay(list[0], 0);
renderList(); renderList();