mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-07 09:02:04 +00:00
this section wasnt needed for qwen3.5 jinja and actually breaks.
This commit is contained in:
parent
7c63d469d7
commit
5f0038cdc9
1 changed files with 6 additions and 6 deletions
12
koboldcpp.py
12
koboldcpp.py
|
|
@ -3078,12 +3078,12 @@ def format_jinja(messages_orig, tools, chat_template_kwargs=None):
|
|||
func["arguments"] = json.loads(args)
|
||||
except Exception:
|
||||
pass
|
||||
# Fix tool content
|
||||
if m.get("role") == "tool" and isinstance(m.get("content"), str):
|
||||
try:
|
||||
m["content"] = json.loads(m["content"])
|
||||
except Exception:
|
||||
pass
|
||||
# Fix tool content for some templates
|
||||
# if m.get("role") == "tool" and isinstance(m.get("content"), str):
|
||||
# try:
|
||||
# m["content"] = json.loads(m["content"])
|
||||
# except Exception:
|
||||
# pass
|
||||
jinja_env.globals['strftime_now'] = strftime_now
|
||||
jinja_env.globals['raise_exception'] = raise_exception
|
||||
jinja_env.filters["tojson"] = tojson
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue