-
Notifications
You must be signed in to change notification settings - Fork 80
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
AzureOpenAIGenerator
not passing meta
(used tokens, model...) to Langfuse
#816
Labels
Comments
AzureOpenAIGenerator
not passing meta
(used tokens, model...) to Langfuse
The problem probably lies in this part of the code. It seems that we are only considering OpenAI generators. We need to investigate and see if we can generalize the behavior of the tracer. |
@anakin87 is correct, we only support |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When intializing a pipeline including the LangFuse tracer and an AzureOpenAIGenerator, costs and tokens cannot be tracked properly like with the "original" OpenAIGenerator
Error message
Expected behavior
Below, you see 2 Screenshots. One is frome the pipeline using an
OpenAIGenerator
, the second one using theAzureOpenAIGenerator
. Tokens and costs are not displayed as intended.Additional context
![openai_tracing](https://private-user-images.githubusercontent.com/36325360/336126469-b00eb0fc-ba66-4cc6-b9ea-696d2204a7c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyMzQyNjMsIm5iZiI6MTcyMjIzMzk2MywicGF0aCI6Ii8zNjMyNTM2MC8zMzYxMjY0NjktYjAwZWIwZmMtYmE2Ni00Y2M2LWI5ZWEtNjk2ZDIyMDRhN2M0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI5VDA2MTkyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4ZDFiNjcyNWMyZTFjODgxMzU5OTk0NmM4YzllNDFhNjM2Y2M4MzFjMzkwM2EwNjgxMjVjZGIxOGZmN2ZlYTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VZopR5q6QEzeUNqNoFLe4OqWzWzFavk1b3TCpWf8684)
Add any other context about the problem here, like document types / preprocessing steps / settings of reader etc.
To Reproduce
Initialization
I initialized all components. But for the current issues, only the generator is the problem, so i just packed the initialization into the sample code.
FAQ Check
System:
The text was updated successfully, but these errors were encountered: