mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-05 05:16:03 +00:00
fix: Only when messagechunk is present, will msg_sequence be assigned to the subsequent tool calls.
This commit is contained in:
@@ -171,7 +171,9 @@ class LocalAgentRunner(runner.RequestRunner):
|
||||
|
||||
pending_tool_calls = final_msg.tool_calls
|
||||
first_content = final_msg.content
|
||||
first_end_sequence = final_msg.msg_sequence
|
||||
if isinstance(final_msg, llm_entities.MessageChunk):
|
||||
|
||||
first_end_sequence = final_msg.msg_sequence
|
||||
|
||||
req_messages.append(final_msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user