Skip to content

Commit 9568e6e

Browse files
authored
fix f string errors in streamlit chat (#73)
1 parent 4d514dd commit 9568e6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/streamlit/streamlit_chat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def run(container):
173173
item = data.get("item", {})
174174
if item.get("type") == "function_call":
175175
with container.chat_message("function_call", avatar="🔨"):
176-
st.markdown(f"Called `{item.get("name")}`")
176+
st.markdown(f"Called `{item.get('name')}`")
177177
st.caption("Arguments")
178178
st.code(item.get("arguments", ""), language="json")
179179
if item.get("type") == "web_search_call":
@@ -223,7 +223,7 @@ def run(container):
223223
st.markdown(item["text"])
224224
elif msg.get("type") == "function_call":
225225
with st.chat_message("function_call", avatar="🔨"):
226-
st.markdown(f"Called `{msg.get("name")}`")
226+
st.markdown(f"Called `{msg.get('name')}`")
227227
st.caption("Arguments")
228228
st.code(msg.get("arguments", ""), language="json")
229229
elif msg.get("type") == "function_call_output":

0 commit comments

Comments
 (0)