endpoint mode name not use in OpenAI-API-compatible plugin #400

Closed
opened 2026-02-16 10:19:18 -05:00 by yindo · 2 comments
Owner

Originally created by @deific on GitHub (Jun 26, 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.3.1

Plugin version

0.0.16

Cloud or Self Hosted

Self Hosted (Docker), Cloud

Steps to reproduce

When adding ollama's model with the OpenAI-API-compatible plugin, the endpoint model name is expected to be used, but in fact the endpoint model name does not work.
1、The endpoint model name is the correct name. If the model name is a custom name, an error will be reported when saving.
Image
2、No matter the endpoint model name is correct or incorrect, it can be saved normally as long as the model name is changed to the correct name.
Image
Image

✔️ Error log

No response

Originally created by @deific on GitHub (Jun 26, 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.3.1 ### Plugin version 0.0.16 ### Cloud or Self Hosted Self Hosted (Docker), Cloud ### Steps to reproduce When adding ollama's model with the OpenAI-API-compatible plugin, the endpoint model name is expected to be used, but in fact the endpoint model name does not work. 1、The endpoint model name is the correct name. If the model name is a custom name, an error will be reported when saving. ![Image](https://github.com/user-attachments/assets/6e822d39-b51c-4272-b135-f098c03acc2f) 2、No matter the endpoint model name is correct or incorrect, it can be saved normally as long as the model name is changed to the correct name. ![Image](https://github.com/user-attachments/assets/09b8f37d-d7ce-46e0-96a3-34e1e1fad5ec) ![Image](https://github.com/user-attachments/assets/0da154d3-ece3-47b5-b9fc-cc1acf6dcbb7) ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:19:18 -05:00
yindo closed this issue 2026-02-16 10:19:19 -05:00
Author
Owner

@hjlarry commented on GitHub (Jul 2, 2025):

the endpoint model name also need to upgrade the dify_plugin sdk
but the sdk changes here released 5 days ago,
https://github.com/langgenius/dify-plugin-sdks/pull/24

please wait the sdk new version and then upgrade the OpenAI-API-compatible plugin version, it will works

@hjlarry commented on GitHub (Jul 2, 2025): the endpoint model name also need to upgrade the dify_plugin sdk but the sdk changes here released 5 days ago, https://github.com/langgenius/dify-plugin-sdks/pull/24 please wait the sdk new version and then upgrade the OpenAI-API-compatible plugin version, it will works
Author
Owner

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

Hi, @deific. 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 the OpenAI-API-compatible plugin in Dify v1.3.1 with plugin v0.0.16 did not correctly use the endpoint model name for Ollama's model.
  • The model name was correct and validated, but the plugin behavior was incorrect.
  • Contributor hjlarry noted that upgrading the dify_plugin SDK was necessary to fix this.
  • The issue was resolved by upgrading the dify_plugin SDK and then upgrading the OpenAI-API-compatible plugin accordingly.

Next Steps:

  • Please confirm if this issue remains relevant with the latest versions of the dify_official_plugins repository.
  • If it is still an issue, feel free to comment here to keep the discussion open; otherwise, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 19, 2025): Hi, @deific. 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 the OpenAI-API-compatible plugin in Dify v1.3.1 with plugin v0.0.16 did not correctly use the endpoint model name for Ollama's model. - The model name was correct and validated, but the plugin behavior was incorrect. - Contributor hjlarry noted that upgrading the dify_plugin SDK was necessary to fix this. - The issue was resolved by upgrading the dify_plugin SDK and then upgrading the OpenAI-API-compatible plugin accordingly. **Next Steps:** - Please confirm if this issue remains relevant with the latest versions of the dify_official_plugins repository. - If it is still an issue, feel free to comment here to keep the discussion open; otherwise, 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#400