feat: refine assistant logic and update docs

This commit is contained in:
future
2026-04-09 21:03:02 +03:00
parent ebe79c3692
commit 42c064a274
19 changed files with 1958 additions and 492 deletions

View File

@@ -6,6 +6,11 @@ AI_PROVIDER=
# OPENROUTER_API_KEY=your_openrouter_api_key_here
OPENROUTER_MODEL=openai/gpt-4o-mini
OPENROUTER_API_URL=https://openrouter.ai/api/v1/chat/completions
AI_CHAT_TEMPERATURE=0.9
AI_CHAT_MAX_TOKENS=160
AI_CHAT_MAX_CHARS=240
AI_INTENT_TEMPERATURE=0.0
AI_TRANSLATION_TEMPERATURE=0.2
# OpenAI
# OPENAI_API_KEY=your_openai_api_key_here
@@ -35,6 +40,13 @@ OLLAMA_API_URL=http://localhost:11434/v1/chat/completions
DEEPGRAM_API_KEY=your_deepgram_api_key_here
PORCUPINE_ACCESS_KEY=your_porcupine_access_key_here
PORCUPINE_SENSITIVITY=0.8
# Anti-phantom wake word filter (RMS gate).
# Increase values if random activations persist; lower them if wake word becomes too hard to trigger.
# If the mic reopens and instantly re-triggers, keep RMS as-is and raise WAKEWORD_REOPEN_GRACE_SECONDS.
# WAKEWORD_MIN_RMS=120
# WAKEWORD_RMS_MULTIPLIER=1.7
# WAKEWORD_HIT_COOLDOWN_SECONDS=1.2
# WAKEWORD_REOPEN_GRACE_SECONDS=0.45
# Optional audio device overrides (substring match by name or exact PortAudio index)
# AUDIO_INPUT_DEVICE_NAME=pulse
# AUDIO_INPUT_DEVICE_INDEX=2