Text Generation
Transformers
Safetensors
English
olmo3
conversational

Fix for the environments where tools key might be undefined

#17

This fixes both cases - for default and provided system prompts. The fix can be applied to both instruct versions 7B and 32B

Checked with llama.cpp and python jinja2

From llama.cpp

While executing FilterExpression at line 3, column 350 in source:
...ons.' -}}{{- '<functions>' -}}{{- tools | tojson -}}{{- '</functions><|im_end|>↵...
                                           ^                                                                          
Error: Unknown (built-in) filter 'tojson' for type Undefined (hint: 'tools')    
randomuniqname changed pull request title from Fix for the env where tools key might be undefined to Fix for the environments where tools key might be undefined
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment