- 07 Jan, 2026 1 commit
-
-
Parth Sareen authored
-
- 06 Jan, 2026 1 commit
-
-
Parth Sareen authored
-
- 29 May, 2025 1 commit
-
-
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
-
- 12 Mar, 2025 1 commit
-
-
Shane-XB-Qian authored
Signed-off-by:shane.xb.qian <shane.qian@foxmail.com>
-
- 21 Dec, 2024 1 commit
-
-
Michael Yang authored
gods v2 uses go generics rather than interfaces which simplifies the code considerably
-
- 13 Aug, 2024 1 commit
-
-
Michael Yang authored
- fixes printf: non-constant format string in call to fmt.Printf - fixes SA1032: arguments have the wrong order - disables testifylint
-
- 02 Aug, 2024 1 commit
-
-
Michael Yang authored
-
- 04 Jun, 2024 4 commits
-
-
Michael Yang authored
-
Michael Yang authored
-
Michael Yang authored
-
Michael Yang authored
-
- 28 May, 2024 1 commit
-
-
Josh authored
* integrated runewidth for display management - fixed cursor movement for mutli-width char * updated input and deletion of multi-byte chars * fixed line history with some exceptions * improved insert and add * fixed issues with moving across lines * end of line extra space tracking' * saved changes * fixed end of line issues with empty spaces * worked some more * worked on end of line * fixed failed test * fixed minor inserting bug * fixed movement hotkeys * adjusted hotkeys * removed comments * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * Update readline/buffer.go Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com> * deleted comments and duplicate code * removed duplicate code * added comments, refactored add function to use addChar * added helper to retrieve lineSpacing, renamed lineFlags for clarity * fixed remove() --------- Co-authored-by:
Bruce MacDonald <brucewmacdonald@gmail.com>
-
- 07 May, 2024 1 commit
-
-
Giuseppe Lumia authored
Some terminals may send line feed characters when pasting text with newlines.
-
- 29 Mar, 2024 1 commit
-
-
Patrick Devine authored
Co-authored-by:Michael Yang <mxyng@pm.me>
-
- 26 Mar, 2024 1 commit
-
-
Jeffrey Morgan authored
* detect arrow keys on windows * add some helpful comments
-
- 15 Mar, 2024 1 commit
-
-
Blake Mizerany authored
This fixes some brittle, simple equality checks to use errors.Is. Since go1.13, errors.Is is the idiomatic way to check for errors. Co-authored-by:Jeffrey Morgan <jmorganca@gmail.com>
-
- 07 Mar, 2024 1 commit
-
-
Michael Yang authored
-
- 15 Feb, 2024 1 commit
-
-
Patrick Devine authored
-
- 22 Jan, 2024 1 commit
-
-
Meng Zhuo authored
-
- 09 Jan, 2024 3 commits
-
-
Michael Yang authored
-
Michael Yang authored
-
Michael Yang authored
-
- 06 Jan, 2024 1 commit
-
-
Michael Yang authored
-
- 11 Dec, 2023 1 commit
-
-
Bruce MacDonald authored
-
- 02 Dec, 2023 1 commit
-
-
Michael Yang authored
-
- 26 Nov, 2023 2 commits
-
-
Jeffrey Morgan authored
-
Jeffrey Morgan authored
Co-authored-by:Wen Sun <iwendellsun@gmail.com>
-
- 21 Nov, 2023 1 commit
-
-
Kevin Cao authored
-
- 01 Nov, 2023 1 commit
-
-
Michael Yang authored
-
- 30 Oct, 2023 1 commit
-
-
Bruce MacDonald authored
- update the readline package to have basic support on windows, this is not full feature parity with the unix cli yet
-
- 28 Oct, 2023 5 commits
-
-
Jeffrey Morgan authored
-
Jeffrey Morgan authored
-
Jeffrey Morgan authored
-
Jeffrey Morgan authored
-
Jeffrey Morgan authored
* dont quit ioloop on 0 rune * check for closed channel * remove unused error on `Close()`
-
- 26 Oct, 2023 2 commits
-
-
Patrick Devine authored
-
Patrick Devine authored
-
- 25 Oct, 2023 1 commit
-
-
Patrick Devine authored
-