#8551·mealie

[SCRAPER] - Hardcoded /audio/transcriptions for OpenAI breaks gemini transcription

Author: geekykid12Created Sep 25, 2026Updated Sep 25, 2026
Labelsbugscrapertriage

First Check

  • I used the GitHub search to find a similar issue and didn't find it.

  • I have verified that this issue is not related to the underlying library hhyrsev/recipe-scrapers by 1) checking the debugger and data is returned, 2) verifying that there are errors in the log related to application level code, or 3) verified that the site provides recipe data, or is otherwise supported by hhyrsev/recipe-scrapers

  • This issue can be replicated on the demo site (https://demo.mealie.io/)

Please provide 1-5 example URLs that are having errors

https://www.facebook.com/reel/705655659162325

Please provide your logs for the Mealie container docker logs <container-id> > mealie.logs

INFO 2026-09-25T22:10:06 - [127.0.0.1:42934] 200 OK "GET /api/app/about HTTP/1.1" INFO 2026-09-25T22:10:36 - [127.0.0.1:39698] 200 OK "GET /api/app/about HTTP/1.1" INFO 2026-09-25T22:10:52 - [192.168.1.177:52472] 200 OK "POST /api/recipes/create/ai/stream HTTP/1.1" INFO 2026-09-25T22:10:55 - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/audio/transcriptions "HTTP/1.1 404 Not Found" WARNING 2026-09-25T22:10:55 - Failed to create audio transcription, falling back to chat completion (NotFoundError: Error code: 404) WARNING 2026-09-25T22:10:55 - Failed to create audio transcription, falling back to chat completion (NotFoundError: Error code: 404) INFO 2026-09-25T22:10:57 - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/chat/completions "HTTP/1.1 400 Bad Request" ERROR 2026-09-25T22:10:57 - Failed to compile source with TranscriptionCompiler Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 400, in get_response return await self._get_raw_response(prompt, user_messages, response_schema, provider) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 355, in _get_raw_response async with client.chat.completions.with_streaming_response.parse( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ messages=[ ^^^^^^^^^^ ...<10 lines>... response_format=response_schema, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) as response: ^ File "/opt/mealie/lib/python3.14/site-packages/openai/_response.py", line 655, in aenter self.__response = await self._api_request ^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/openai/resources/chat/completions/completions.py", line 1816, in parse return await self._post( ^^^^^^^^^^^^^^^^^ ...<55 lines>... ) ^ File "/opt/mealie/lib/python3.14/site-packages/openai/_base_client.py", line 1990, in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/openai/_base_client.py", line 1775, in request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Developer instruction is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}]

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/transcription.py", line 157, in resolve_transcription transcript = await openai_service.transcribe_audio(video_data["audio"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 436, in transcribe_audio response = await self.get_response( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ERROR 2026-09-25T22:10:57 - Failed to compile source with TranscriptionCompiler Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 400, in get_response return await self._get_raw_response(prompt, user_messages, response_schema, provider) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 355, in _get_raw_response ) async with client.chat.completions.with_streaming_response.parse( ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ messages=[ ^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 404, in get_response raise Exception(f"OpenAI Request Failed. {e.class.name}: {e}") from e Exception: OpenAI Request Failed. BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Developer instruction is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}]

...<10 lines>...
    response_format=response_schema,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
) as response:

The above exception was the direct cause of the following exception:

^

Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/openai/_response.py", line 655, in aenter File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/steps/compile_source.py", line 66, in _compile self.__response = await self._api_request compiled = await compiler.compile() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/compilers/transcription.py", line 42, in compile transcript = await transcription.resolve_transcription( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ video_data, self.ctx.ai, before_transcribe=report_transcribing ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ ^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/transcription.py", line 161, in resolve_transcription File "/opt/mealie/lib/python3.14/site-packages/openai/resources/chat/completions/completions.py", line 1816, in parse raise exceptions.OpenAIServiceError(f"Failed to transcribe audio: {e}") from e return await self._post( mealie.core.exceptions.OpenAIServiceError: Failed to transcribe audio: OpenAI Request Failed. BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Developer instruction is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}] ^^^^^^^^^^^^^^^^^ ...<55 lines>... ) ^ File "/opt/mealie/lib/python3.14/site-packages/openai/_base_client.py", line 1990, in post return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/openai/_base_client.py", line 1775, in request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Developer instruction is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}]

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/transcription.py", line 157, in resolve_transcription transcript = await openai_service.transcribe_audio(video_data["audio"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 436, in transcribe_audio response = await self.get_response( ^^^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/openai.py", line 404, in get_response raise Exception(f"OpenAI Request Failed. {e.class.name}: {e}") from e Exception: OpenAI Request Failed. BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Developer instruction is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}]

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/steps/compile_source.py", line 66, in _compile compiled = await compiler.compile() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/compilers/transcription.py", line 42, in compile transcript = await transcription.resolve_transcription( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ video_data, self.ctx.ai, before_transcribe=report_transcribing ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/openai/transcription.py", line 161, in resolve_transcription raise exceptions.OpenAIServiceError(f"Failed to transcribe audio: {e}") from e mealie.core.exceptions.OpenAIServiceError: Failed to transcribe audio: OpenAI Request Failed. BadRequestError: Error code: 400 - [{'error': {'code': 400, 'message': 'Developer instruction is not enabled for this model', 'status': 'INVALID_ARGUMENT'}}] INFO 2026-09-25T22:10:57 - HTTP Request: GET https://www.facebook.com/reel/705655659162325 "HTTP/2 200 OK" INFO 2026-09-25T22:11:01 - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/chat/completions "HTTP/1.1 200 OK" ERROR 2026-09-25T22:11:01 - Error in streaming recipe creation Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/routes/recipe/recipe_crud_routes.py", line 302, in run slug = await create(on_progress) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/routes/recipe/recipe_crud_routes.py", line 438, in create recipe = await ai_service.create_from_ai( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... ) ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/ai_recipe_service.py", line 51, in create_from_ai ERROR 2026-09-25T22:11:01 - Error in streaming recipe creation Traceback (most recent call last): File "/opt/mealie/lib/python3.14/site-packages/mealie/routes/recipe/recipe_crud_routes.py", line 302, in run slug = await create(on_progress) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/routes/recipe/recipe_crud_routes.py", line 438, in create recipe = await ai_service.create_from_ai( recipe_data = await self.build_recipe( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... ...<6 lines>... ) ) ^ ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/ai_recipe_service.py", line 51, in create_from_ai File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/ai_recipe_service.py", line 104, in build_recipe recipe_data = await self.build_recipe( result = await RecipeImportWorkflow().run(ctx) ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<6 lines>... ) ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/ai_recipe_service.py", line 104, in build_recipe result = await RecipeImportWorkflow().run(ctx) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/workflow.py", line 43, in run File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/workflow.py", line 43, in run await step.run(ctx) await step.run(ctx) File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/steps/compile_source.py", line 143, in run File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/steps/compile_source.py", line 143, in run ctx.compiled_source = self._merge( ctx.compiled_source = self._merge( ~~~~~~~~~~~^ ~~~~~~~~~~~^ ctx, [CompiledDocument(label, compiled) for label, compiled in sources if compiled] ctx, [CompiledDocument(label, compiled) for label, compiled in sources if compiled] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/steps/compile_source.py", line 119, in _merge raise NoRecipeDataError(ctx.translator.t("recipe.import-errors.no-recipe-found")) mealie.services.recipe.import_workflow.exceptions.NoRecipeDataError: No recipe was found in the provided source ) ^ File "/opt/mealie/lib/python3.14/site-packages/mealie/services/recipe/import_workflow/steps/compile_source.py", line 119, in _merge raise NoRecipeDataError(ctx.translator.t("recipe.import-errors.no-recipe-found")) mealie.services.recipe.import_workflow.exceptions.NoRecipeDataError: No recipe was found in the provided source

Deployment

Docker (Linux)