Upgrade transcription model from gpt-4o-mini-transcribe to gpt-4o-transcribe for better accent handling

This commit is contained in:
2026-06-30 00:13:37 +00:00
parent 97099095bd
commit c44f9f03fe
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -21,11 +21,11 @@ logger = logging.getLogger(__name__)
OPENROUTER_BASE = "https://openrouter.ai/api/v1"
OPENAI_BASE = "https://api.openai.com/v1"
TRANSCRIPTION_MODELS = [
"openai/gpt-4o-mini-transcribe",
"openai/gpt-4o-transcribe",
"openai/whisper-large-v3",
]
DIRECT_OPENAI_TRANSCRIPTION_MODELS = [
"gpt-4o-mini-transcribe",
"gpt-4o-transcribe",
"whisper-1",
]
TRANSCRIPTION_CHUNK_SECONDS = 600
+1 -1
View File
@@ -36,7 +36,7 @@ def test_build_transcription_payload_uses_base64_json_shape(tmp_path: Path):
payload = _build_transcription_payload(str(path), TRANSCRIPTION_MODELS[0])
assert payload["model"] == "openai/gpt-4o-mini-transcribe"
assert payload["model"] == "openai/gpt-4o-transcribe"
assert payload["input_audio"]["format"] == "wav"
assert payload["input_audio"]["data"] == base64.b64encode(b"RIFFdemo").decode("ascii")