🐛 fix(chat.py): fix the issue where the params variable is not converted to a string before slicing it in the log message to avoid TypeError
This commit is contained in:
parent
2cb8452968
commit
00c1734fb8
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ async def stream_build(flow_id: str):
|
||||||
params = vertex._built_object_repr()
|
params = vertex._built_object_repr()
|
||||||
valid = True
|
valid = True
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Building node {params[:50]}{'...' if len(params) > 50 else ''}"
|
f"Building node {str(params)[:50]}{'...' if len(str(params)) > 50 else ''}"
|
||||||
)
|
)
|
||||||
if vertex.artifacts:
|
if vertex.artifacts:
|
||||||
# The artifacts will be prompt variables
|
# The artifacts will be prompt variables
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue