Skip to content

Commit aec188d

Browse files
Properly pass DB session (#941)
* Pass DB session * Fix toolkit event
1 parent 02e94d1 commit aec188d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/backend/chat/custom/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async def call_chat(
231231
if has_tool_calls:
232232
# Handle tool calls
233233
tool_results = await async_call_tools(
234-
chat_request.chat_history, deployment_model, ctx, **kwargs
234+
chat_request.chat_history, deployment_model, ctx, session=session, **kwargs
235235
)
236236

237237
# Remove the message if tool results are present

src/interfaces/assistants_web/src/components/MessageRow/ToolEvents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const ToolEvent: React.FC<ToolEventProps> = ({ plan, event, stream_search_result
102102
>
103103
{errorDocuments[errorDocuments.length - 1].text}
104104
</ToolErrorWrapper>
105-
) : toolName && toolName != TOOL_PYTHON_INTERPRETER_ID ? (
105+
) : (toolName && toolName != TOOL_PYTHON_INTERPRETER_ID) || artifacts.length > 0 ? (
106106
<ToolEventWrapper icon="book-open-text">
107107
{artifacts.length > 0 ? (
108108
<>

0 commit comments

Comments
 (0)