Regarding the custom PriceConfig parameter for OpenAI-API-compatible model providers #524

Closed
opened 2026-02-16 10:19:39 -05:00 by yindo · 1 comment
Owner

Originally created by @starweavingdream on GitHub (Aug 5, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Since you are deploying the model yourself, when configuring an OpenAI-API-compatible model provider, is it possible to add a custom PriceConfig parameter configuration item, so that pricing can be generated based on this configuration when the model responds?
I've carefully reviewed the official documentation, and this functionality can indeed be achieved through custom model plugins. However, having to create a separate configuration file for each additional model is truly overly cumbersome. It is recommended to integrate the PriceConfig settings into the new form of the OpenAI-API-compatible plugin. Subsequent calculations can then be performed by retrieving data directly from the form.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @starweavingdream on GitHub (Aug 5, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. Since you are deploying the model yourself, when configuring an OpenAI-API-compatible model provider, is it possible to add a custom PriceConfig parameter configuration item, so that pricing can be generated based on this configuration when the model responds? I've carefully reviewed the official documentation, and this functionality can indeed be achieved through custom model plugins. However, having to create a separate configuration file for each additional model is truly overly cumbersome. It is recommended to integrate the PriceConfig settings into the new form of the OpenAI-API-compatible plugin. Subsequent calculations can then be performed by retrieving data directly from the form. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo closed this issue 2026-02-16 10:19:39 -05:00
Author
Owner

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

Hi, @starweavingdream. 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 requested adding a custom PriceConfig parameter to OpenAI-API-compatible model providers for direct pricing calculations.
  • This aims to remove the need for separate configuration files per model.
  • You also suggested integrating PriceConfig settings into the plugin form for easier management and automatic pricing during model responses.
  • There has been no further activity or comments on this issue since it was opened.

Next Steps:

  • Please let me know if this feature request is still relevant to the latest version of the dify-official-plugins repository by commenting on this issue.
  • If I do not hear back within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 23, 2025): Hi, @starweavingdream. 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 requested adding a custom PriceConfig parameter to OpenAI-API-compatible model providers for direct pricing calculations. - This aims to remove the need for separate configuration files per model. - You also suggested integrating PriceConfig settings into the plugin form for easier management and automatic pricing during model responses. - There has been no further activity or comments on this issue since it was opened. **Next Steps:** - Please let me know if this feature request is still relevant to the latest version of the dify-official-plugins repository by commenting on this issue. - If I do not hear back within 5 days, I will automatically close this issue. 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#524