1. 06 Jan, 2026 1 commit
    • 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
  2. 06 Nov, 2025 2 commits
  3. 05 Oct, 2025 1 commit
  4. 07 Aug, 2025 2 commits
  5. 06 Aug, 2025 1 commit
  6. 05 Aug, 2025 1 commit
    • Devon Rifkin's avatar
      tools: support anyOf types · 30f8a68c
      Devon Rifkin authored
      afaik gpt-oss is the first model that meaningfully transforms tool
      function definitions in its template. We found that relatively common
      definitions that include `anyOf` were not working because the template
      was assuming that types were always defined via a `type` field.
      
      anyOf allows for fully recursive types, so I exposed a
      `toTypeScriptType()` function to handle this recursive logic in go and
      keep the templates cleaner. The gpt-oss templates will need to be
      updated to use this.
      
      We should keep building out our function definition support to more
      fully support the parts of json schema that make sense for this use
      case, but in the meantime this will unblock some users (e.g., zed's
      ollama integration w/ gpt-oss). Probably the most urgent is proper array
      support
      30f8a68c
  7. 10 Apr, 2025 1 commit
  8. 08 Apr, 2025 1 commit
  9. 07 Apr, 2025 1 commit
  10. 02 Apr, 2025 1 commit
  11. 13 Dec, 2024 1 commit
  12. 05 Dec, 2024 1 commit
  13. 30 Nov, 2024 1 commit
  14. 07 Sep, 2024 2 commits
  15. 06 Sep, 2024 1 commit
  16. 12 Aug, 2024 1 commit
  17. 02 Aug, 2024 1 commit
  18. 19 Jul, 2024 2 commits
  19. 17 Jul, 2024 1 commit
  20. 16 Jul, 2024 1 commit
    • royjhan's avatar
      OpenAI: /v1/embeddings compatibility (#5285) · 987dbab0
      royjhan authored
      
      
      * OpenAI v1 models
      
      * Empty List Testing
      
      * Add back envconfig
      
      * v1/models docs
      
      * Remove Docs
      
      * OpenAI batch embed compatibility
      
      * merge conflicts
      
      * integrate with api/embed
      
      * ep
      
      * merge conflicts
      
      * request tests
      
      * rm resp test
      
      * merge conflict
      
      * merge conflict
      
      * test fixes
      
      * test fn renaming
      
      * input validation for empty string
      
      ---------
      Co-authored-by: default avatarjmorganca <jmorganca@gmail.com>
      987dbab0
  21. 14 Jul, 2024 1 commit
  22. 09 Jul, 2024 2 commits
  23. 02 Jul, 2024 2 commits