refine debug window logic (#936)

This commit is contained in:
XianBW
2025-06-05 11:29:37 +08:00
committed by GitHub
parent d0d050eee4
commit 3e5c587e13
+6 -2
View File
@@ -843,9 +843,13 @@ if debug:
st.write(state.last_msg)
if isinstance(state.last_msg.content, list):
st.write(state.last_msg.content[0])
elif isinstance(state.last_msg.content, dict):
st.write(state.last_msg.content)
elif not isinstance(state.last_msg.content, str):
st.write(state.last_msg.content.__dict__)
try:
st.write(state.last_msg.content.__dict__)
except:
st.write(type(state.last_msg.content))
if state.log_path and state.fs is None:
refresh()