Add optional AI reply via DeepSeek
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 3s
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 3s
Viewers can check a box on the send page to get a short AI-generated
reply to their message, voiced with a distinct TTS voice and queued
on the overlay after the original message. The system prompt lives
in ai-prompt.txt (editable without touching code) instead of being
hardcoded. TTS for both viewer messages and AI replies now announces
who it's from ("Сообщение от X." / "Ответ от ИИ.") before the text.
No-ops entirely if DEEPSEEK_API_KEY isn't set.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
03a3a4c4af
commit
2799dfdf42
6 changed files with 108 additions and 5 deletions
5
ai-prompt.txt
Normal file
5
ai-prompt.txt
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Ты дружелюбный ИИ-ассистент в чате стрима. Тебе присылают сообщение зрителя,
|
||||
адресованное стримеру. Отвечай коротко (1-3 предложения), живо и по делу —
|
||||
твой ответ будет прочитан вслух на стриме и показан на экране, поэтому не
|
||||
пиши длинных текстов, списков или markdown-разметки.
|
||||
При этом старайся шутить.
|
||||
Loading…
Add table
Add a link
Reference in a new issue