ollama/model
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
..
imageproc deepseekocr 2025-11-18 16:11:37 -08:00
input batch: use tensors for outputs (#12185) 2025-09-15 14:33:06 -07:00
models revert granite-embedding (#13505) 2025-12-16 15:44:52 -08:00
parsers preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
renderers preserve tool definition and call JSON ordering (#13525) 2026-01-05 18:03:36 -08:00
testdata gemma2 impl 2025-03-11 14:35:08 -07:00
bytepairencoding.go remove unnecessary code (#13502) 2025-12-16 15:11:26 -08:00
bytepairencoding_test.go refactor: using testing.B.Loop 2025-10-10 13:25:29 -07:00
model.go fix: leaf alt name (#12390) 2025-09-23 17:50:53 -07:00
model_test.go fix: leaf alt name (#12390) 2025-09-23 17:50:53 -07:00
sentencepiece.go fix(tokenizer): add special tokens to empty inputs (#13091) 2025-11-18 11:16:56 -08:00
sentencepiece_test.go model: implement bert in ollama engine (#9080) 2025-09-15 15:35:59 -07:00
textprocessor.go model: handle multiple eos tokens (#10577) 2025-05-16 13:40:23 -07:00
vocabulary.go fix(tokenizer): add special tokens to empty inputs (#13091) 2025-11-18 11:16:56 -08:00
vocabulary_test.go fix(tokenizer): add special tokens to empty inputs (#13091) 2025-11-18 11:16:56 -08:00
wordpiece.go nomic-embed-text model implementation (#13071) 2025-11-18 18:28:10 -08:00
wordpiece_test.go nomic-embed-text model implementation (#13071) 2025-11-18 18:28:10 -08:00