[GH-ISSUE #15268] No thinking for gemma4 with /api/generate by default #71825

Open
opened 2026-05-05 02:38:26 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Nix-01 on GitHub (Apr 3, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/15268

What is the issue?

Thinking works fine for gemma4 with /api/chat but don't with /api/generate

Thinking works with /api/generate if we force it in the payload (think: True).

This behavior is reversed with other models like qwen3 (think by default)

Relevant log output


OS

Windows

GPU

Nvidia

CPU

AMD

Ollama version

0.20.0

Originally created by @Nix-01 on GitHub (Apr 3, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/15268 ### What is the issue? Thinking works fine for gemma4 with /api/chat but don't with /api/generate Thinking works with /api/generate if we force it in the payload (think: True). This behavior is reversed with other models like qwen3 (think by default) ### Relevant log output ```shell ``` ### OS Windows ### GPU Nvidia ### CPU AMD ### Ollama version 0.20.0
GiteaMirror added the bug label 2026-05-05 02:38:26 -05:00
Author
Owner

@PureBlissAK commented on GitHub (Apr 18, 2026):

🤖 Automated Triage & Analysis Report

Issue: #15268
Analyzed: 2026-04-18T18:22:45.790694

Analysis

  • Type: unknown
  • Severity: medium
  • Components: unknown

Implementation Plan

  • Effort: medium
  • Steps:

This issue has been triaged and marked for implementation.

<!-- gh-comment-id:4274310582 --> @PureBlissAK commented on GitHub (Apr 18, 2026): <!-- ollama-issue-orchestrator:v1 issue:15268 --> ## 🤖 Automated Triage & Analysis Report **Issue**: #15268 **Analyzed**: 2026-04-18T18:22:45.790694 ### Analysis - **Type**: unknown - **Severity**: medium - **Components**: unknown ### Implementation Plan - **Effort**: medium - **Steps**: *This issue has been triaged and marked for implementation.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#71825