ollama - 💡(How to fix) Fix Longer thinking time settings? [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15004Fetched 2026-04-08 01:12:47
View on GitHub
Comments
2
Participants
2
Timeline
4
Reactions
0
Timeline (top)
commented ×2closed ×1labeled ×1
RAW_BUFFERClick to expand / collapse

Is it possible to have longer thinking times beyond High? Or allow the user to customize longer times. I would be happy to wait 5x longer to see if the results got better. High x5 is Extreme High x10 is 5x Ridiculous I have been getting some very interesting results with gpt-oss:20b, but allowing longer thinking time may give better results?

extent analysis

Fix Plan

To allow longer thinking times, we can introduce a customizable timeout feature.

Implementation Steps

  • Add a new configuration option for timeout multiplier (e.g., timeout_multiplier)
  • Update the API to accept this new option
  • Modify the model invocation to use the customized timeout

Example Code

# config.py
TIMEOUT_MULTIPLIER_OPTIONS = {
    'low': 1,
    'high': 5,
    'extreme': 10,
    'ridiculous': 50
}

# api.py
from config import TIMEOUT_MULTIPLIER_OPTIONS

def generate_text(prompt, model, timeout_multiplier='high'):
    timeout = TIMEOUT_MULTIPLIER_OPTIONS[timeout_multiplier] * BASE_TIMEOUT
    # invoke model with customized timeout
    response = model.generate_text(prompt, timeout=timeout)
    return response

# usage
generate_text('example prompt', 'gpt-oss:20b', timeout_multiplier='ridiculous')

Verification

Test the new feature by invoking the API with different timeout_multiplier values and verify that the model responds with improved results.

Extra Tips

  • Consider adding input validation for timeout_multiplier to prevent excessive timeouts.
  • Monitor the performance impact of longer timeouts on your system and adjust the configuration accordingly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING