mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:08:37 +00:00
fix: stop enforcing <final> for ollama (#16191) (thanks @Glucksberg)
This commit is contained in:
@@ -8,6 +8,7 @@ Docs: https://docs.openclaw.ai
|
|||||||
|
|
||||||
- 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.
|
- 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.
|
||||||
- Security/Hooks: ignore hook package manifest entries that point outside the package directory (prevents out-of-tree handler loads during hook discovery).
|
- Security/Hooks: ignore hook package manifest entries that point outside the package directory (prevents out-of-tree handler loads during hook discovery).
|
||||||
|
- Ollama/Agents: avoid forcing `<final>` tag enforcement for Ollama models, which could suppress all output as `(no output)`. (#16191) Thanks @Glucksberg.
|
||||||
|
|
||||||
## 2026.2.13
|
## 2026.2.13
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
|
|||||||
import { isReasoningTagProvider } from "./provider-utils.js";
|
import { isReasoningTagProvider } from "./provider-utils.js";
|
||||||
|
|
||||||
describe("isReasoningTagProvider", () => {
|
describe("isReasoningTagProvider", () => {
|
||||||
it("returns false for ollama — native reasoning field, no tags needed (#2279)", () => {
|
it("returns false for ollama - native reasoning field, no tags needed (#2279)", () => {
|
||||||
expect(isReasoningTagProvider("ollama")).toBe(false);
|
expect(isReasoningTagProvider("ollama")).toBe(false);
|
||||||
expect(isReasoningTagProvider("Ollama")).toBe(false);
|
expect(isReasoningTagProvider("Ollama")).toBe(false);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export function isReasoningTagProvider(provider: string | undefined | null): boo
|
|||||||
const normalized = provider.trim().toLowerCase();
|
const normalized = provider.trim().toLowerCase();
|
||||||
|
|
||||||
// Check for exact matches or known prefixes/substrings for reasoning providers.
|
// Check for exact matches or known prefixes/substrings for reasoning providers.
|
||||||
// Note: Ollama is intentionally excluded — its OpenAI-compatible endpoint
|
// Note: Ollama is intentionally excluded - its OpenAI-compatible endpoint
|
||||||
// handles reasoning natively via the `reasoning` field in streaming chunks,
|
// handles reasoning natively via the `reasoning` field in streaming chunks,
|
||||||
// so tag-based enforcement is unnecessary and causes all output to be
|
// so tag-based enforcement is unnecessary and causes all output to be
|
||||||
// discarded as "(no output)" (#2279).
|
// discarded as "(no output)" (#2279).
|
||||||
|
|||||||
Reference in New Issue
Block a user