1. 07 Jan, 2026 1 commit
  2. 06 Jan, 2026 1 commit
  3. 29 May, 2025 1 commit
    • Devon Rifkin's avatar
      add thinking support to the api and cli (#10584) · 5f57b0ef
      Devon Rifkin authored
      - Both `/api/generate` and `/api/chat` now accept a `"think"`
        option that allows specifying whether thinking mode should be on or
        not
      - Templates get passed this new option so, e.g., qwen3's template can
        put `/think` or `/no_think` in the system prompt depending on the
        value of the setting
      - Models' thinking support is inferred by inspecting model templates.
        The prefix and suffix the parser uses to identify thinking support is
        also automatically inferred from templates
      - Thinking control & parsing is opt-in via the API to prevent breaking
        existing API consumers. If the `"think"` option is not specified, the
        behavior is unchanged from previous versions of ollama
      - Add parsing for thinking blocks in both streaming/non-streaming mode
        in both `/generate` and `/chat`
      - Update the CLI to make use of these changes. Users can pass `--think`
        or `--think=false` to control thinking, or during an interactive
        session they can use the commands `/set think` or `/set nothink`
      - A `--hidethinking` option has also been added to the CLI. This makes
        it easy to use thinking in scripting scenarios like
        `ollama run qwen3 --think --hidethinking "my question here"` where you
        just want to see the answer but still want the benefits of thinking
        models
      5f57b0ef
  4. 12 Mar, 2025 1 commit
  5. 21 Dec, 2024 1 commit
  6. 13 Aug, 2024 1 commit
    • Michael Yang's avatar
      lint · 2697d7f5
      Michael Yang authored
      - fixes printf: non-constant format string in call to fmt.Printf
      - fixes SA1032: arguments have the wrong order
      - disables testifylint
      2697d7f5
  7. 02 Aug, 2024 1 commit
  8. 04 Jun, 2024 4 commits
  9. 28 May, 2024 1 commit
  10. 07 May, 2024 1 commit
  11. 29 Mar, 2024 1 commit
  12. 26 Mar, 2024 1 commit
  13. 15 Mar, 2024 1 commit
  14. 07 Mar, 2024 1 commit
  15. 15 Feb, 2024 1 commit
  16. 22 Jan, 2024 1 commit
  17. 09 Jan, 2024 3 commits
  18. 06 Jan, 2024 1 commit
  19. 11 Dec, 2023 1 commit
  20. 02 Dec, 2023 1 commit
  21. 26 Nov, 2023 2 commits
  22. 21 Nov, 2023 1 commit
  23. 01 Nov, 2023 1 commit
  24. 30 Oct, 2023 1 commit
  25. 28 Oct, 2023 5 commits
  26. 26 Oct, 2023 2 commits
  27. 25 Oct, 2023 1 commit