Skip to content
This repository was archived by the owner on Aug 5, 2025. It is now read-only.

Commit 307dcbf

Browse files
authored
Merge pull request #140 from Chainlit/willy/fix-lg-outputs
fix: logs all outputs
2 parents 279b279 + 513a203 commit 307dcbf

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

literalai/callback/langchain_callback.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -512,13 +512,9 @@ def _on_run_update(self, run: Run) -> None:
512512
return
513513

514514
outputs = run.outputs or {}
515-
output_keys = list(outputs.keys())
516-
output = outputs
517-
if output_keys:
518-
output = outputs.get(output_keys[0], outputs)
519515

520516
if current_step:
521-
current_step.output = self.process_content(output)
517+
current_step.output = self.process_content(outputs)
522518
current_step.end()
523519

524520
def _on_error(self, error: BaseException, *, run_id: "UUID", **kwargs: Any):

literalai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.627"
1+
__version__ = "0.0.628"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="literalai",
5-
version="0.0.627", # update version in literalai/version.py
5+
version="0.0.628", # update version in literalai/version.py
66
description="An SDK for observability in Python applications",
77
long_description=open("README.md").read(),
88
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)