Članci s tagom #ollama
-
Running LLMs locally with Ollama in PHP: zero API cost for classification and embeddings
Ollama integration: OLLAMA_BASE_URL env var → OpenAIAdapter (same code path as OpenAI/Groq), isConfigured() checks base_url not api_key, api_key is ceremonial ('ollama' string), default model qwen2.5:14b. Embeddings via /api/embeddings (native) not /v1/embeddings. Transcription via whisper.cpp. LAN host setup. OLLAMA_BASE_URL is operator-configured — no SSRF guard needed.
-
Multi-provider AI with automatic failover: how TaskRouter works in PHP
TaskRouter: 10 named task roles, failover chains (paid → FREE on failure), a stateful circuit breaker in ai_provider_health, 6 provider adapters, and zero vendor lock-in in application code. Every AI call is one method; the router handles the rest.