Bug: Volcengine Maas Plugin Fails to Calculate LLM Invocation Costs #479

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

Originally created by @xuzijie1995 on GitHub (Jul 24, 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

0.17.0

Plugin version

0.0.23

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Image
  1. Install and enable the volcengine_maas plugin.
  2. Configure the credentials for any LLM model, for example, DeepSeek-V3.
  3. Create a new application (e.g., a Chatbot).
  4. In the application's Prompt Eng., select the configured Volcengine model as the LLM.
  5. Send a message in the application's WebApp to trigger an LLM call.
  6. Query the Dify database to inspect the record for this interaction in the messages table.
  7. Expected behavior: The columns total_price, answer_price_unit, and message_unit_price should contain calculated cost values based on the model's pricing.
  8. Actual behavior: The columns total_price, answer_price_unit, and message_unit_price are all 0.

✔️ Error log

There are no application error logs for this issue, as it is a silent failure in the business logic rather than a runtime crash. The incorrect data in the database (as shown above) serves as evidence of the bug.

Originally created by @xuzijie1995 on GitHub (Jul 24, 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 0.17.0 ### Plugin version 0.0.23 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce <img width="440" height="178" alt="Image" src="https://github.com/user-attachments/assets/1ccfb6ff-9e89-46f4-8435-171b5ef03f02" /> 1. Install and enable the `volcengine_maas` plugin. 2. Configure the credentials for any LLM model, for example, `DeepSeek-V3`. 3. Create a new application (e.g., a Chatbot). 4. In the application's Prompt Eng., select the configured Volcengine model as the LLM. 5. Send a message in the application's WebApp to trigger an LLM call. 6. Query the Dify database to inspect the record for this interaction in the `messages` table. 7. **Expected behavior:** The columns `total_price`, `answer_price_unit`, and `message_unit_price` should contain calculated cost values based on the model's pricing. 8. **Actual behavior:** The columns `total_price`, `answer_price_unit`, and `message_unit_price` are all `0`. ### ✔️ Error log There are no application error logs for this issue, as it is a silent failure in the business logic rather than a runtime crash. The incorrect data in the database (as shown above) serves as evidence of the bug.
yindo added the bug label 2026-02-16 10:19:31 -05:00
yindo closed this issue 2026-02-16 10:19:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#479