Skip to content

Commit 4f49f9e

Browse files
committed
fix: stop enforcing <final> for ollama (#16191) (thanks @Glucksberg)
1 parent 134f361 commit 4f49f9e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Docs: https://docs.openclaw.ai
88

99
- Security/Hooks: restrict hook transform modules to `~/.openclaw/hooks/transforms` (prevents path traversal/escape module loads via config). Config note: `hooks.transformsDir` must now be within that directory. Thanks @akhmittra.
1010
- Security/Hooks: ignore hook package manifest entries that point outside the package directory (prevents out-of-tree handler loads during hook discovery).
11+
- Ollama/Agents: avoid forcing `<final>` tag enforcement for Ollama models, which could suppress all output as `(no output)`. (#16191) Thanks @Glucksberg.
1112

1213
## 2026.2.13
1314

src/utils/provider-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
22
import { isReasoningTagProvider } from "./provider-utils.js";
33

44
describe("isReasoningTagProvider", () => {
5-
it("returns false for ollama native reasoning field, no tags needed (#2279)", () => {
5+
it("returns false for ollama - native reasoning field, no tags needed (#2279)", () => {
66
expect(isReasoningTagProvider("ollama")).toBe(false);
77
expect(isReasoningTagProvider("Ollama")).toBe(false);
88
});

src/utils/provider-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function isReasoningTagProvider(provider: string | undefined | null): boo
1414
const normalized = provider.trim().toLowerCase();
1515

1616
// Check for exact matches or known prefixes/substrings for reasoning providers.
17-
// Note: Ollama is intentionally excluded its OpenAI-compatible endpoint
17+
// Note: Ollama is intentionally excluded - its OpenAI-compatible endpoint
1818
// handles reasoning natively via the `reasoning` field in streaming chunks,
1919
// so tag-based enforcement is unnecessary and causes all output to be
2020
// discarded as "(no output)" (#2279).

0 commit comments

Comments
 (0)