OpenAI-API-compatible plugin adds models successfully but does not see them in the list #73

Closed
opened 2026-02-16 10:17:59 -05:00 by yindo · 4 comments
Owner

Originally created by @fyt135 on GitHub (Mar 13, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.1

Plugin version

0.0.7

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image

Image

✔️ Error log

No response

Originally created by @fyt135 on GitHub (Mar 13, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.1 ### Plugin version 0.0.7 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/763f2815-b7c0-469a-b8e1-107faab5ebf8) ![Image](https://github.com/user-attachments/assets/a411da6b-8cc1-4050-97e1-eabee3b62565) ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:17:59 -05:00
yindo closed this issue 2026-02-16 10:17:59 -05:00
Author
Owner

@fyt135 commented on GitHub (Mar 13, 2025):

Image

@fyt135 commented on GitHub (Mar 13, 2025): ![Image](https://github.com/user-attachments/assets/1e3549d9-da3c-4a39-8f07-efad27cfdd2c)
Author
Owner

@fyt135 commented on GitHub (Mar 13, 2025):

It was deployed based on this project below
https://github.com/LuckLittleBoy/SenseVoice-OneApi

@fyt135 commented on GitHub (Mar 13, 2025): It was deployed based on this project below https://github.com/LuckLittleBoy/SenseVoice-OneApi
Author
Owner

@caolicaoli commented on GitHub (Mar 13, 2025):

also error:
org.springframework.ai.retry.TransientAiException: 500 - {"code":-500,"message":"{"message":"{\"args\":{},\"error_type\":\"TypeError\",\"message\":\"dify_plugin.entities.model.llm.LLMModelConfig() got multiple values for keyword argument 'completion_params'\"}","error_type":"PluginDaemonInternalServerError","args":null}","data":null}

改一下代码就行了:

model_config=LLMModelConfig(
completion_params=llm.get("completion_params", {}), **llm
)
改成
model_config=LLMModelConfig(**llm)

@caolicaoli commented on GitHub (Mar 13, 2025): also error: org.springframework.ai.retry.TransientAiException: 500 - {"code":-500,"message":"{\"message\":\"{\\\"args\\\":{},\\\"error_type\\\":\\\"TypeError\\\",\\\"message\\\":\\\"dify_plugin.entities.model.llm.LLMModelConfig() got multiple values for keyword argument 'completion_params'\\\"}\",\"error_type\":\"PluginDaemonInternalServerError\",\"args\":null}","data":null} 改一下代码就行了: 把 model_config=LLMModelConfig( completion_params=llm.get("completion_params", {}), **llm ) 改成 model_config=LLMModelConfig(**llm)
Author
Owner

@dosubot[bot] commented on GitHub (Aug 16, 2025):

Hi, @fyt135. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported that models added via the OpenAI-API-compatible plugin on Dify v1.0.1 with plugin v0.0.7 did not appear in the model list.
  • You provided a deployment reference to the SenseVoice-OneApi project for context.
  • The maintainer identified a TypeError caused by passing 'completion_params' twice in the LLMModelConfig initialization.
  • I applied a code fix to prevent this duplication, resolving the error and allowing models to display correctly.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here.
  • If no further updates are provided, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 16, 2025): Hi, @fyt135. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported that models added via the OpenAI-API-compatible plugin on Dify v1.0.1 with plugin v0.0.7 did not appear in the model list. - You provided a deployment reference to the SenseVoice-OneApi project for context. - The maintainer identified a TypeError caused by passing 'completion_params' twice in the LLMModelConfig initialization. - I applied a code fix to prevent this duplication, resolving the error and allowing models to display correctly. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of the dify-official-plugins repository by commenting here. - If no further updates are provided, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#73