mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-10 21:24:42 +02:00
feat(stt): mode texte + sélection de modèle (client→serveur par requête)
Serveur : /v1/ask accepte un model optionnel (validé contre STT_ALLOWED_MODELS), nouvel endpoint GET /v1/models (défaut + alias autorisés). Pas de switch global. Client : 'stt --text' (chat texte simple sans micro/HUD), '--model hermes|claude|qwen|opus' (noms courts → alias LiteLLM), commandes /model et /models en mode texte. Le modèle choisi est envoyé au serveur à chaque requête (voix comme texte). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FmcxGsyXZXogiAHQLjnZT
This commit is contained in:
parent
47936b0088
commit
bfe7b7deca
10 changed files with 146 additions and 25 deletions
|
|
@ -11,7 +11,16 @@ class Settings:
|
|||
"STT_LITELLM_URL", "http://192.168.10.1:4000/v1/chat/completions"
|
||||
)
|
||||
litellm_key: str = os.getenv("STT_LITELLM_KEY", "lm-studio")
|
||||
# Modèle par défaut + alias LiteLLM autorisés (le client peut en demander un par requête)
|
||||
model: str = os.getenv("STT_MODEL", "hermes-default")
|
||||
allowed_models: list[str] = [
|
||||
m.strip()
|
||||
for m in os.getenv(
|
||||
"STT_ALLOWED_MODELS",
|
||||
"hermes-default,qwen3-8b,claude-sonnet-4-6,claude-opus-4-7",
|
||||
).split(",")
|
||||
if m.strip()
|
||||
]
|
||||
|
||||
system_prompt: str = os.getenv(
|
||||
"STT_SYSTEM_PROMPT",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue