Skip to content

Feature/ollama startup check#37

Open
MichaelAnders wants to merge 3 commits intoFast-Editor:mainfrom
MichaelAnders:feature/ollama-startup-check
Open

Feature/ollama startup check#37
MichaelAnders wants to merge 3 commits intoFast-Editor:mainfrom
MichaelAnders:feature/ollama-startup-check

Conversation

@MichaelAnders
Copy link
Contributor

No description provided.

- New OLLAMA_KEEP_ALIVE env var controls how long models stay loaded
- Accepts: -1 (permanent), 0 (immediate unload), "10m", "24h", or seconds
- Passed to Ollama API requests via keep_alive parameter
- New ollama-startup.js module polls server for up to 60s before startup
- Checks server reachability via /api/tags endpoint
- Verifies configured model is available
- Preloads model with keep_alive setting if configured
- Server startup waits for Ollama when configured as provider

Note: Only triggered when MODEL_PROVIDER=ollama or PREFER_OLLAMA=true.
When Ollama is FALLBACK_PROVIDER, model loads on first fallback use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant