mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-01 22:00:40 +08:00
fix(langfuse): qusetion classify node can't see cost in langfuse (#17982)
This commit is contained in:
parent
d80f4c7d3b
commit
cd7fd100a7
@ -186,6 +186,8 @@ class ParameterExtractorNode(LLMNode):
|
|||||||
"usage": None,
|
"usage": None,
|
||||||
"function": {} if not prompt_message_tools else jsonable_encoder(prompt_message_tools[0]),
|
"function": {} if not prompt_message_tools else jsonable_encoder(prompt_message_tools[0]),
|
||||||
"tool_call": None,
|
"tool_call": None,
|
||||||
|
"model_provider": model_config.provider,
|
||||||
|
"model_name": model_config.model,
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -130,6 +130,8 @@ class QuestionClassifierNode(LLMNode):
|
|||||||
),
|
),
|
||||||
"usage": jsonable_encoder(usage),
|
"usage": jsonable_encoder(usage),
|
||||||
"finish_reason": finish_reason,
|
"finish_reason": finish_reason,
|
||||||
|
"model_provider": model_config.provider,
|
||||||
|
"model_name": model_config.model,
|
||||||
}
|
}
|
||||||
outputs = {"class_name": category_name, "class_id": category_id}
|
outputs = {"class_name": category_name, "class_id": category_id}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user