• Devon Rifkin's avatar
    preserve tool definition and call JSON ordering (#13525) · e51dead6
    Devon Rifkin authored
    * 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
    e51dead6
orderedmap_test.go 7.35 KB