[BUG] - Audio-only AI provider fails Test Connection despite successful transcription
First Check
- This is not a feature request.
- I added a descriptive title.
- I searched existing open and closed Mealie issues and did not find this bug.
- I searched and read the AI provider documentation, which recommends a transcription-capable audio provider for video imports but does not explain this test result.
- Reproduced on the demo site (not tested; it would require configuring an audio provider there).
What is the issue you are experiencing?
The Test Connection action reports HTTP 404 for a saved OpenAI audio provider using gpt-4o-mini-transcribe, although the same provider successfully transcribes audio during an Instagram video recipe import. This is a false-negative connectivity test.
In v3.27.0, OpenAIService.test_connection() calls ping(), which uses the chat-completions path for every provider. A transcription-only model cannot answer that request. The same code path appears in the v3.28.0 source; I have not deployed or retested v3.28.0.
Steps to Reproduce
- Add an OpenAI provider with base URL
https://api.openai.com/v1and modelgpt-4o-mini-transcribe, then select it as the group's audio provider. - Use Test Connection on that saved provider.
- Observe an HTTP 404 result.
- Import a recipe from an Instagram video with audio using Import with AI. The import succeeds using the same audio provider.
Expected: The test validates an audio provider through an audio-capable endpoint, or clearly says that this generic chat test does not apply to audio-only models. It should not report the working provider as unreachable.
Actual: The test sends POST /v1/chat/completions with the audio model and reports HTTP 404. During the successful import, Mealie sends POST /v1/audio/transcriptions and receives HTTP 200.
Relevant logs (sanitized)
Connection test: POST https://api.openai.com/v1/chat/completions -> 404
Video import: POST https://api.openai.com/v1/audio/transcriptions -> 200
Video import: POST https://api.openai.com/v1/chat/completions -> 200 (separate default recipe-generation provider)No API key, recipe URL, or user information is included above.
Mealie Version
Observed on Mealie v3.27.0 (Docker Linux; a derived image based on ghcr.io/mealie-recipes/mealie:v3.27.0). The v3.28.0 source still routes test_connection() through ping(); v3.28.0 runtime behavior was not tested.
Deployment
Docker (Linux).
Source: mealie-recipes/mealie