mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-03 11:35:48 +02:00
allow tool calls to be triggered by any role
This commit is contained in:
+1
-1
@@ -2470,7 +2470,7 @@ ws ::= | " " | "\n" [ \t]{0,20}
|
||||
attachedaudid += 1
|
||||
messages_string += f"\n(Attached Audio {attachedaudid})\n"
|
||||
# If last message, add any tools calls after message content and before message end token if any
|
||||
if (message['role'] == "user" or message['role'] == "tool") and message_index == len(messages_array):
|
||||
if message_index == len(messages_array):
|
||||
used_tool_json = determine_tool_json_to_use(genparams, messages_string, assistant_message_start, (message['role'] == "tool"))
|
||||
|
||||
if used_tool_json:
|
||||
|
||||
Reference in New Issue
Block a user