Upgrade transcription model from gpt-4o-mini-transcribe to gpt-4o-transcribe for better accent handling
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user