Files
ragflow/conf/models/openrouter.json
Jake Armstrong b1ef5d365f Go: implement ASR in OpenRouter driver (#15067)
### What problem does this PR solve?

Fixes #15066

OpenRouter now exposes an official speech-to-text endpoint at `POST
/api/v1/audio/transcriptions`, but the Go model driver still returned
`openrouter, no such method` from `TranscribeAudio`. This left
OpenRouter ASR models unavailable through the Go API server even though
the provider already has OpenRouter audio support for TTS.

Related provider-tracking context: #14736

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Co-authored-by: Jin Hai <haijin.chn@gmail.com>
2026-05-22 15:19:38 +08:00

66 lines
1.2 KiB
JSON

{
"name": "OpenRouter",
"url": {
"default": "https://openrouter.ai/api/v1"
},
"url_suffix": {
"chat": "chat/completions",
"models": "models",
"embedding": "embeddings",
"rerank": "rerank",
"balance": "credits",
"tts": "audio/speech",
"asr": "audio/transcriptions"
},
"class": "openrouter",
"models": [
{
"name": "google/gemma-4-31b-it",
"max_tokens": 262144,
"model_types": [
"chat"
],
"thinking": {
"default_value": true,
"clear_thinking": true
}
},
{
"name": "minimax/minimax-m2.5",
"max_tokens": 196608,
"model_types": [
"chat"
],
"thinking": {
"default_value": true,
"clear_thinking": true
}
},
{
"name": "tencent/hy3-preview",
"max_tokens": 262144,
"model_types": [
"chat"
],
"thinking": {
"default_value": true,
"clear_thinking": true
}
},
{
"name": "openai/gpt-audio-mini",
"max_tokens": 131072,
"model_types": [
"tts"
]
},
{
"name": "openai/whisper-large-v3",
"max_tokens": 131072,
"model_types": [
"asr"
]
}
]
}