Pārlūkot izejas kodu

fix: workflow trace none type error (#5758)

tags/0.6.13
Joe pirms 1 gada
vecāks
revīzija
ffb07eb24b
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 3
- 1
api/core/ops/langfuse_trace/langfuse_trace.py Parādīt failu

node_type = node_execution.node_type node_type = node_execution.node_type
status = node_execution.status status = node_execution.status
if node_type == "llm": if node_type == "llm":
inputs = json.loads(node_execution.process_data).get("prompts", {})
inputs = json.loads(node_execution.process_data).get(
"prompts", {}
) if node_execution.process_data else {}
else: else:
inputs = json.loads(node_execution.inputs) if node_execution.inputs else {} inputs = json.loads(node_execution.inputs) if node_execution.inputs else {}
outputs = ( outputs = (

+ 3
- 1
api/core/ops/langsmith_trace/langsmith_trace.py Parādīt failu

node_type = node_execution.node_type node_type = node_execution.node_type
status = node_execution.status status = node_execution.status
if node_type == "llm": if node_type == "llm":
inputs = json.loads(node_execution.process_data).get("prompts", {})
inputs = json.loads(node_execution.process_data).get(
"prompts", {}
) if node_execution.process_data else {}
else: else:
inputs = json.loads(node_execution.inputs) if node_execution.inputs else {} inputs = json.loads(node_execution.inputs) if node_execution.inputs else {}
outputs = ( outputs = (

Notiek ielāde…
Atcelt
Saglabāt