Missing YAML Model Definition Causes Zero Pricing, Affecting Billing Statistics #151

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

Originally created by @yjc980121 on GitHub (Mar 30, 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.1.0

Plugin version

langgenius/openai_api_compatible:0.0.11

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Issue Description:
We have identified an issue where the absence of a YAML model definition for OpenAI API compatibility results in the price being set to zero. This default setting negatively impacts billing statistics and token consumption tracking, as it does not reflect the actual usage or costs associated with the service.
Impact:
The zero price makes accurate billing calculations impossible.
It hinders effective cost tracking and token consumption monitoring.
The lack of a defined price complicates the ability to observe and analyze usage patterns.
Proposed Solution:
To address this issue, we recommend assigning a symbolic price to the model definition. This would:
Enable accurate billing calculations.
Provide better visibility into token usage and associated costs.
Simplify the process of tracking and analyzing usage statistics.
Could you please consider adding a symbolic price to the YAML model definition to resolve this issue?
Thank you for your attention to this matter.

✔️ Error log

No response

Originally created by @yjc980121 on GitHub (Mar 30, 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.1.0 ### Plugin version langgenius/openai_api_compatible:0.0.11 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Issue Description: We have identified an issue where the absence of a YAML model definition for OpenAI API compatibility results in the price being set to zero. This default setting negatively impacts billing statistics and token consumption tracking, as it does not reflect the actual usage or costs associated with the service. Impact: The zero price makes accurate billing calculations impossible. It hinders effective cost tracking and token consumption monitoring. The lack of a defined price complicates the ability to observe and analyze usage patterns. Proposed Solution: To address this issue, we recommend assigning a symbolic price to the model definition. This would: Enable accurate billing calculations. Provide better visibility into token usage and associated costs. Simplify the process of tracking and analyzing usage statistics. Could you please consider adding a symbolic price to the YAML model definition to resolve this issue? Thank you for your attention to this matter. ### ✔️ Error log _No response_
yindo added the bug label 2026-02-16 10:18:15 -05:00
yindo closed this issue 2026-02-16 10:18:15 -05:00
Author
Owner

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

Hi, @yjc980121. 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 missing YAML model definitions for OpenAI API compatibility.
  • This absence causes pricing to default to zero, leading to inaccurate billing and token usage tracking.
  • You suggested adding symbolic prices in the YAML models to enable correct cost calculations.
  • The goal is to ensure accurate billing and better visibility into service consumption.
  • No further updates or activity have been recorded on this issue.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here.
  • If I don’t hear back from you within 5 days, I will automatically close this issue.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Aug 16, 2025): Hi, @yjc980121. 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 missing YAML model definitions for OpenAI API compatibility. - This absence causes pricing to default to zero, leading to inaccurate billing and token usage tracking. - You suggested adding symbolic prices in the YAML models to enable correct cost calculations. - The goal is to ensure accurate billing and better visibility into service consumption. - No further updates or activity have been recorded on this issue. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of dify-official-plugins by commenting here. - If I don’t hear back from you 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#151