mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-11 01:24:36 +00:00
allow tool calls to be triggered by any role
This commit is contained in:
parent
a87c05f8c1
commit
cd0dc0abec
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue