Skip to content

Commit

Permalink
fix: 修复memory读取聊天历史时的报错
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Apr 16, 2024
1 parent da4a869 commit ddb3487
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/bisheng/processing/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ async def process_graph_cached(
input_key_object = built_object.input_keys[0]
# memery input
if hasattr(built_object, 'memory') and built_object.memory is not None:
fix_memory_inputs(built_object)
with session_getter() as session:
history = session.exec(
select(ChatMessage).where(
Expand Down

0 comments on commit ddb3487

Please sign in to comment.