Skip to content

Commit caad676

Browse files
committed
fix checks
Signed-off-by: Jack Luar <[email protected]>
1 parent f0194b7 commit caad676

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

backend/src/agents/retriever_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def route(self, state: AgentState) -> list[str]:
196196
return ["retrieve_general"]
197197

198198
if self.inbuit_tool_calling:
199-
tool_names = [tool["name"] for tool in tools if "name" in tool] # type: ignore
199+
tool_names = [tool["name"] for tool in tools if "name" in tool] # type: ignore
200200
return tool_names
201201
else:
202202
return tools

frontend/utils/feedback.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,10 @@ def show_feedback_form(
173173
if selected_question:
174174
sources = metadata[selected_question].get("sources", ["N/A"])
175175
if isinstance(sources, str):
176-
177176
sources = [sources]
178-
177+
179178
context = metadata[selected_question].get("context", ["N/A"])
180179
if isinstance(context, str):
181-
182180
context = [context]
183181

184182
if st.sidebar.button("Submit"):

0 commit comments

Comments
 (0)