diff --git a/README.md b/README.md index 4e1fa00..72c759f 100644 --- a/README.md +++ b/README.md @@ -49,14 +49,16 @@ Groq may block direct requests from some networks. Point the script at your own 1. Deploy an nginx reverse proxy that forwards to `api.groq.com`: ```nginx - location /groq/ { - proxy_pass https://api.groq.com/; + location / { + proxy_pass https://api.groq.com:443; proxy_set_header Host api.groq.com; } ``` -2. Tampermonkey menu → **Set STT Endpoint** → paste `https://your-domain.com/groq/openai/v1/audio/transcriptions` +2. Tampermonkey menu → **Set STT Endpoint** → paste `https://your-domain.com/openai/v1/audio/transcriptions` 3. Requests now go through your proxy. The userscript metadata uses `@connect *`, so any domain is allowed. +A path prefix is not needed if the domain is dedicated to Groq. The `/groq` variant stays valid for multi-proxy domains — `location /groq/` with a trailing slash strips the prefix. + ### 🌡️ Temperature Whisper may hallucinate on silence/noise. **Set Temperature** (default `0` = deterministic, range `0`–`1`) reduces hallucinations. @@ -111,14 +113,16 @@ Groq может блокировать прямые запросы из неко 1. Разверни nginx reverse proxy, который форвардит на `api.groq.com`: ```nginx - location /groq/ { - proxy_pass https://api.groq.com/; + location / { + proxy_pass https://api.groq.com:443; proxy_set_header Host api.groq.com; } ``` -2. Меню Tampermonkey → **Set STT Endpoint** → вставь `https://your-domain.com/groq/openai/v1/audio/transcriptions` +2. Меню Tampermonkey → **Set STT Endpoint** → вставь `https://your-domain.com/openai/v1/audio/transcriptions` 3. Запросы пойдут через твой прокси. Метаблок юзерскрипта использует `@connect *`, поэтому разрешён любой домен. +Префикс пути не нужен, если домен выделен только под Groq. `/groq`-вариант остаётся валидным для мульти-прокси доменов — `location /groq/` с trailing slash срезает префикс. + ### 🌡️ Temperature Whisper может галлюцинировать на тишине/шуме. **Set Temperature** (по умолчанию `0` = детерминированный вывод, диапазон `0`–`1`) снижает галлюцинации.