mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
OpenAI Audio Plugin Fail #327
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tanreinama on GitHub (May 30, 2025).
Self Checks
Dify version
1.4.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
openai_audio plugin (https://marketplace.dify.ai/plugins/lysonober/openai_audio) fails in local uploaded file.
plugin version is 0.0.4
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@Olemi-llm-apprentice commented on GitHub (Jun 4, 2025):
Hi @tanreinama,
Thank you for reporting this issue. I've analyzed the problem and identified the root cause of the OpenAI audio plugin failure.
Root Cause Analysis
The issue occurs because the current OpenAI plugin implementation is missing support for
AudioPromptMessageContentin the message processing logic. Specifically:AudioPromptMessageContentclass is not imported in/models/openai/models/llm/llm.py_convert_prompt_message_to_dictmethod doesn't handle audio content conversionTechnical Details
The expected audio message processing should convert audio content to the OpenAI API format:
However, this conversion is currently not implemented.
Proposed Solution
I'm planning to contribute a fix that includes:
AudioPromptMessageContentimport and processing logicgpt-4o-audio-preview-0603model (released yesterday)Timeline
I'll start working on this fix and submit a PR within the next few days. This will make the audio functionality work as expected.