Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Langfuse monitoring platform cannot count the cost of the model in the parameter extractor #10684

Closed
5 tasks done
fanjiuen opened this issue Nov 14, 2024 · 1 comment · May be fixed by #13117
Closed
5 tasks done
Assignees
Labels
🐞 bug Something isn't working

Comments

@fanjiuen
Copy link

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 search for existing issues, 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.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

image

✔️ Expected Behavior

Model costs can calculate the cost of all models in the workflow

❌ Actual Behavior

Model costs The cost of the model in the parameter extractor cannot be counted

Copy link

dosubot bot commented Nov 14, 2024

@fanjiuen Hello there! I'm here to assist you with any bugs, questions, or contributions while you wait for a human maintainer. Let's tackle this together!

The issue you're experiencing with Langfuse not being able to count the cost of the model in the parameter extractor might be related to how the parameter extractor is integrated or how the data is being tracked. While I don't have specific information on this exact issue, I can provide some insights into how errors are typically handled in the parameter extractor.

When the cost calculation fails in the parameter extractor, it usually results in exceptions such as InvalidArrayValueError, InvalidBoolValueError, and others. These errors are caught and logged, and the process returns a NodeRunResult with a failed status [1].

To troubleshoot, you might want to check the logs for any of these specific errors to see if they provide more context on why the cost isn't being calculated. Additionally, ensure that the integration with Langfuse is correctly set up, as it relies on token usage data for cost calculations [2]. If the issue persists, reviewing the configuration settings related to the parameter extractor and Langfuse might help identify any discrepancies.

To continue talking to Dosu, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 14, 2024
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Dec 15, 2024
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants