Hybrid usage Langfuse among OpenAI calls as well Langchain #1429
-
Hi, in the docs we can find eighter OpenAI approach when we should import langfuse.openai and use openai.chat.completions.create.... and also LangChain expression language or by handler we can pass an object langfuse_handler = trace.get_langchain_handler() But my issue is, that I don't want to use LangChain for talking to OpenAI because it has some significant problems if you rely on functions invoking. So partially I would like to use langfuse as handlers for Langchain but for some other actions don't. How to make them both working in one script. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Have you already implemented this and wonder how to best trace both with Langfuse? |
Beta Was this translation helpful? Give feedback.
Have a look at these two examples that demonstrate interoperability of Langfuse SDKs with both integrations