Lucas
Lucas
LLangfuse
Created by Lucas on 8/10/2024 in #support
custom generation langchain runnable lambda
Hello, I'm using Lanchain (and Fireworks). I'm using the _generate method from ChatFireworks (to be able to set the nparameter) as follows:
RunnableLambda(lambda _messages: model._generate(_messages, **kwargs))
RunnableLambda(lambda _messages: model._generate(_messages, **kwargs))
This Runnable is a part of a chain which I called using invoke and set the langfuse callback. The problem is langfuse doesn't detect it's a generation. Anyone has a suggestion ?
5 replies