ollama/model/parsers
Devon Rifkin e51dead636
preserve tool definition and call JSON ordering (#13525)
* preserve tool definition and call JSON ordering

This is another iteration of
<https://github.com/ollama/ollama/pull/12518>, but this time we've
simplified things by relaxing the competing requirements of being
compatible AND order-preserving with templates (vs. renderers). We
maintain backwards compatibility at the cost of not guaranteeing order
for templates. We plan on moving more and more models to renderers,
which have been updated to use these new data types, and additionally
we could add an opt-in way of templates getting an order-preserved list
(e.g., via sibling template vars)

* orderedmap_test: remove testify
2026-01-05 18:03:36 -08:00
..
cogito.go Parser for Cogito v2 (#13145) 2025-11-19 17:21:07 -08:00
cogito_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
deepseek3.go DeepseekV3 Family Parser (#13484) 2025-12-16 18:56:30 -08:00
deepseek3_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
functiongemma.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
functiongemma_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
ministral.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
nemotron3nano.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
nemotron3nano_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
olmo3.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
olmo3_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
olmo3_think.go parsers/renderers: olmo3 think (#13290) 2025-12-09 10:41:47 -08:00
olmo3_think_test.go parsers/renderers: olmo3 think (#13290) 2025-12-09 10:41:47 -08:00
parsers.go parsers/renderers: functiongemma (#13521) 2025-12-18 07:55:37 -08:00
parsers_test.go model: ministral w/ llama4 scaling (#13292) 2025-12-01 23:20:14 -08:00
qwen3coder.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
qwen3coder_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
qwen3vl.go model: ministral w/ llama4 scaling (#13292) 2025-12-01 23:20:14 -08:00
qwen3vl_nonthinking_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
qwen3vl_thinking_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
testhelpers_test.go preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00