Skip to content

Commit 5b10c3d

Browse files
committed
mypy fix
1 parent 351490f commit 5b10c3d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backend/onyx/agents/agent_search/dr/nodes/dr_a0_clarification.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,10 @@ def clarifier(
643643
datetime_aware=True,
644644
)
645645

646-
system_prompt_to_use = build_citations_system_message(
646+
system_prompt_to_use_content = build_citations_system_message(
647647
prompt_config
648648
).content
649+
system_prompt_to_use: str = cast(str, system_prompt_to_use_content)
649650
if graph_config.inputs.project_instructions:
650651
system_prompt_to_use = (
651652
system_prompt_to_use

backend/onyx/chat/process_message.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ def stream_chat_message_objects(
503503
for fd in new_msg_req.current_message_files:
504504
uid = fd.get("user_file_id")
505505
if uid is not None:
506+
uid = UUID(uid)
506507
user_file_ids.append(uid)
507508

508509
# Load in user files into memory and create search tool override kwargs if needed

0 commit comments

Comments
 (0)