fix: stop enforcing <final> for ollama (#16191) (thanks @Glucksberg)

This commit is contained in:
Peter Steinberger
2026-02-14 14:13:18 +01:00
parent 74193ff754
commit 7d3e5788e8
3 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import { describe, expect, it } from "vitest";
import { isReasoningTagProvider } from "./provider-utils.js";
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);
});

View File

@@ -14,7 +14,7 @@ export function isReasoningTagProvider(provider: string | undefined | null): boo
const normalized = provider.trim().toLowerCase();
// 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,
// so tag-based enforcement is unnecessary and causes all output to be
// discarded as "(no output)" (#2279).