| title | Maintenance Update for Daraja MCP Server | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| date | 2026-07-05 | |||||||||||
| author | pmutua | |||||||||||
| tags |
|
|||||||||||
| commit | d0e695d | |||||||||||
| type | dev-diary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """LLM inference with automatic Ollama, OpenAI, and OpenRouter fallback. | |
| Setup: | |
| 1. Install packages: py -m pip install -r requirements.txt | |
| 2. Create a .env file in this project's root directory. | |
| 3. Set AI_PROVIDER to the provider that should be tried first: | |
| AI_PROVIDER=ollama # Local inference; no API key required. | |
| AI_PROVIDER=openai # Requires OPENAI_API_KEY. | |
| AI_PROVIDER=openrouter # Requires OPENROUTER_API_KEY. |
NewerOlder