Replies: 2 comments 1 reply
-
To track additional metrics like cached tokens and cost savings from OpenRouter using Langfuse, you might need to extend the default functionality provided by the You can use the If the default setup does not meet your needs, implementing a custom model rule might be necessary to capture these specific metrics. However, the documentation does not provide detailed steps for this, so you may need to experiment with the SDK to achieve the desired tracking. For more detailed guidance, you might want to refer to the Langfuse documentation or explore the SDK's capabilities further [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Hi everyone. I made a script to automatically continuously load all the openrouter models pricing into langfuse. It's hosted in this repo: https://github.com/thiswillbeyourgithub/openrouter_cost_into_langfuse/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Im using langfuse through the observe decorator and the openai sdk.
Im calling OpenRouter through their API, and the OpenRouter API provides with each response token usage, total cost, number of cached tokens, savings made thx to cached token etc...
But even tho i followed the instructions from ur docs it doesn't track all that! Do i really have to use a custom model rule, and does thar even help me track share of cached token?
Thx
Beta Was this translation helpful? Give feedback.
All reactions