We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d992537 commit 1000e46Copy full SHA for 1000e46
core/cat/utils.py
@@ -296,7 +296,7 @@ def langchain_log_prompt(langchain_prompt, title):
296
print(get_colored_text(f"===== {title} =====", "green"))
297
for m in langchain_prompt.messages:
298
print(get_colored_text(type(m).__name__, "green"))
299
- if type(m.content) == list:
+ if isinstance(m.content, list):
300
for sub_m in m.content:
301
if sub_m.get("type") == "text":
302
print(sub_m["text"])
0 commit comments