You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: adaptive num_ctx for Ollama — auto-size context window based on input length
Ollama defaults to 2048 context which silently truncates long prompts.
Now estimates input tokens (CJK-aware) and sets num_ctx = input + output + buffer,
so small inputs stay fast and large inputs don't get cut off.
0 commit comments