Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/llama_stack_client/lib/inference/event_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ def log(self, event_generator):
if event.event_type == "start":
yield LogEvent("Assistant> ", color="cyan", end="")
elif event.event_type == "progress":
yield LogEvent(event.delta, color="yellow", end="")
yield LogEvent(event.delta.text, color="yellow", end="")
Copy link
Contributor

@ashwinb ashwinb Jan 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yanxi0830 this is not correct. you should check the type of the delta and then if it is a text delta print this or if there is a tool call in there, print that

elif event.event_type == "complete":
yield LogEvent("")
Loading