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(ollama): add diagnostic logging for debugging request hangs
Adds comprehensive logging to help diagnose cases where Ollama requests
hang indefinitely, as reported in #11049. The logging includes:
- Client creation with base URL
- Request start timestamps
- Model fetch timing and cache status
- Warning when model is not in tool-capable list
- Chat request details (URL, model, message count, tool count)
- Stream start timing
Also adds DEFAULT_OLLAMA_TIMEOUT_MS constant (5 minutes) to accommodate
slow model loading times (Ollama models can take 30-60+ seconds to load
into memory on first use).
This logging will help users identify:
1. If the request is reaching Ollama at all
2. Where in the request lifecycle things are hanging
3. If the model is being filtered due to missing tool capabilities
Fixes#11049
0 commit comments