fix: remove Ollama from reasoning tag provider check
Ollama's OpenAI-compatible API handles reasoning natively via the `reasoning` field in streaming chunks, so there is no need for <think>/<final> tag enforcement. Including "ollama" in isReasoningTagProvider() caused enforceFinalTag to be set for all Ollama models, discarding all output since they don't emit <final> tags. Fixes #2279 Co-Authored-By: Ayush Ojha <ayushozha@outlook.com>
This commit is contained in:
parent
6af205a13a
commit
19c4b9796d
@ -12,11 +12,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
|
||||||
if (
|
if (normalized === "google-gemini-cli" || normalized === "google-generative-ai") {
|
||||||
normalized === "ollama" ||
|
|
||||||
normalized === "google-gemini-cli" ||
|
|
||||||
normalized === "google-generative-ai"
|
|
||||||
) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user