fix
This commit is contained in:
@@ -20,7 +20,8 @@ async def transcribe(
|
||||
"""Přepíše audio přes OpenAI Whisper (/audio/transcriptions) a vrátí text."""
|
||||
headers = {"Authorization": f"Bearer {api_key}"}
|
||||
files = {"file": (filename or "audio.mp3", audio, content_type or "application/octet-stream")}
|
||||
form = {"model": model}
|
||||
# temperature=0 => deterministický přepis, méně halucinací na tichu/šumu.
|
||||
form = {"model": model, "temperature": "0"}
|
||||
if language:
|
||||
form["language"] = language
|
||||
url = f"{OPENAI_BASE_URL}/audio/transcriptions"
|
||||
|
||||
Reference in New Issue
Block a user