LLM Providers & AI Services¶
Most AI-enabled products in the portfolio standardize on a unified ai-providers service — a single TypeScript/Python/PHP module that exposes a uniform chat()/embed() interface and routes to whichever provider's SDK is configured. This page covers each provider's role, the SDKs in use, and what models are wired up. GameTrakker and Go Green Transit have no LLM at all.
Model ids below come from product source code where it disagrees with docs (for example several CLAUDE.md files still say
claude-sonnet-4).
Anthropic Claude¶
What it is. Anthropic's frontier LLM family. Strong on reasoning, tool use, long-context, and code.
Models seen in app code:
- claude-sonnet-5, claude-opus-5, claude-haiku-4-5 — newest defaults (SmartForms, GoGreen Verify, OpenSentinel, AI Concierge, GGPI website fallback; Tutor AI uses claude-opus-5 for the tutor and claude-haiku-4-5 as the cheap tier).
- claude-sonnet-4-6, claude-opus-4-6, claude-opus-4-7 — DOC-AI (claude-sonnet-4-6 main model since 2026-11-06, claude-haiku-4-5-20251001 classification; Sonnet 5 / Opus 5 only in its price and Bedrock tables), SuperCabs (claude-haiku-4-5-20251001, claude-sonnet-4-6, claude-opus-4-7), BidIt (claude-sonnet-4-6 default via AI_DEFAULT_MODEL), Marketing AI (claude-sonnet-4-6 most used, claude-opus-4-6), Jarvis (Tauri; claude-sonnet-4-6, claude-haiku-4-5-20251001, claude-opus-4-6, auto-fallback from OpenAI).
- claude-sonnet-4-5-20250929 — Workflow Hub, Sourcing AI, GoGreen Seller AI, HouseKey (DOC-AI moved off it on 2026-11-06).
- claude-sonnet-4-20250514 — Jarvis (Electron; with claude-opus-4-20250514 and claude-haiku-3-20250414, called over plain REST), Toolbelt Handyman, AutoDiag AI, Sell Me A Pen, Maximus Pet Store, Pecos River Traders (default in each Laravel config/services.php / ai-providers.ts), APEX, Recruiting AI, PoligoPro, VotigoPro, Marketing AI (older paths).
- claude-3-haiku-20240307 — Sell Me A Pen, PoligoPro; claude-opus-4-5-20251101 — PoligoPro, VotigoPro.
Common roles:
- Primary chat brain — SuperCabs, BidIt (Anthropic only), DOC-AI, AutoDiag AI, Marketing AI, SmartForms (generation/review).
- Vision — GoGreen Verify (order OpenAI, Claude, Gemini; Claude default claude-sonnet-5), DOC-AI (OCR for scans).
- HIPAA/PHI path — DOC-AI and GoGreen Verify route Claude through AWS Bedrock (boto3) in PHI mode.
- Tool-use agent — AI Concierge (bounded 6-step loop), GGPI website (book_consultation, recall_contact, search_memory), OpenSentinel.
- Cheap tier — Haiku 4.5 for SmartForms classification and SuperCabs light calls.
SDK: @anthropic-ai/sdk (Node), anthropic (Python, 0.42.0 in AutoDiag AI), @ai-sdk/anthropic (Workflow Hub).
Used in: every product with an LLM except none-LLM GameTrakker and Go Green Transit; BidIt and SuperCabs use Anthropic exclusively for chat.
OpenAI¶
What it is. GPT models, embeddings, Whisper (STT), Realtime API (low-latency speech), image generation.
Models seen:
- gpt-4o, gpt-4o-mini — chat. gpt-4o-mini is the common "small task" model (SmartForms HyDE, GGPI website, Recruiting AI fast tier).
- text-embedding-3-small (1536 dim) — default embedding model, see below.
- text-embedding-3-large (3072 dim) — DOC-AI default (backend/app/config.py); OpenSentinel's embeddings module also references -large and ada-002.
- whisper-1 / gpt-4o-transcribe — speech-to-text.
- gpt-image-1, gpt-image-1-mini — image generation (Workflow Hub).
- gpt-5.4 — GoGreen Verify's default OpenAI vision model. Tutor AI uses gpt-5.4-mini (tutor) and gpt-5.4-nano (cheap tier); Jarvis (Tauri) defaults to gpt-5.6-sol for chat and gpt-4o-mini for voice, with gpt-image-1 and gpt-4o-transcribe.
Default embedding users (text-embedding-3-small, 18 products): Toolbelt Handyman, Workflow Hub, Sourcing AI, Marketing AI, GoGreen Seller AI, AutoDiag AI (optional Pinecone), OpenSentinel, GGPI website, AI Concierge, SmartForms, Sell Me A Pen, APEX Sales Training, Recruiting AI, PoligoPro, VotigoPro, HouseKey, Tutor AI, Jarvis (Tauri).
OpenAI Realtime API¶
What it is. A WebSocket-based bidirectional audio-in / audio-out streaming API. The model "speaks" while the user is still speaking; sub-second turn-taking. Massively reduces latency vs. the older STT → LLM → TTS pipeline.
Voice-first products using Realtime: Toolbelt Handyman (gpt-realtime), SuperCabs (Realtime GA), Sell Me A Pen and APEX (gpt-4o-realtime-preview), Recruiting AI (gpt-realtime / gpt-realtime-mini), GGPI website (gpt-realtime, the phone receptionist), HouseKey, Jarvis (Tauri; gpt-realtime / gpt-realtime-mini over tokio-tungstenite). Tutor AI does not use it: its realtime tutor channel is its own ws handler.
OpenAI Embeddings¶
See Vector-Databases.md and AI-Concepts.md — text-embedding-3-small is the portfolio's standard, -large is the high-recall option (DOC-AI). GoGreen Verify has no embedding model at all (its RAG is a client-side term-frequency hash).
SDK: openai (Node and Python).
xAI Grok¶
What it is. xAI's family of LLMs. Available via OpenAI-compatible API (https://api.x.ai/v1).
Role. Alternative provider in multi-provider routing. Models seen: grok-3 (SmartForms, GGPI website), grok-3-mini (Marketing AI, AI Concierge, Maximus Pet Store, Pecos River Traders), grok-3-latest (APEX, Recruiting AI), grok-2 / grok-2-latest (Seller AI, PoligoPro, VotigoPro, HouseKey), grok-4.3 (OpenSentinel config, Tutor AI).
Used in: Toolbelt Handyman, Workflow Hub, Sourcing AI, DOC-AI, Marketing AI, GoGreen Seller AI, AutoDiag AI, OpenSentinel, GGPI website, AI Concierge, SmartForms, Sell Me A Pen, APEX, Recruiting AI, PoligoPro, VotigoPro, HouseKey, Maximus Pet Store, Pecos River Traders, Tutor AI (config plus SDK or plain HTTP; active routing varies).
SDK: Same openai Node/Python SDK pointed at the xAI base URL, or @ai-sdk/xai in Workflow Hub.
Google Gemini¶
What it is. Google's frontier LLM family with strong long-context. gemini-2.0-flash is the common default — fast and cheap.
Models seen: gemini-2.0-flash (most products), gemini-2.5-flash (SmartForms, GoGreen Verify, Tutor AI, Jarvis (Tauri)), gemini-2.0-pro / gemini-1.5-pro (Jarvis (Electron), alongside gemini-2.0-flash), gemini-2.5-pro (HouseKey), gemini-1.5-pro / gemini-1.5-flash (VotigoPro, PoligoPro).
SDK: @google/generative-ai (Node), google-generativeai (Python), @ai-sdk/google (Workflow Hub).
Used in: Toolbelt Handyman, Workflow Hub, Sourcing AI, DOC-AI, Marketing AI, GoGreen Verify, GoGreen Seller AI, AutoDiag AI, OpenSentinel, GGPI website, AI Concierge, SmartForms, Sell Me A Pen, Maximus Pet Store, Pecos River Traders, APEX, Recruiting AI, PoligoPro, VotigoPro, HouseKey, Tutor AI, Jarvis, Do Me A Ditty (Gemini 3 Pro Image for song art, Lyria for music).
HuggingFace¶
What it is. Hub of open-source models — embeddings (sentence-transformers), LLMs, classifiers, encoders. Inference endpoints + the Inference API.
Role in portfolio. Configured as a fallback provider; it is an alternate embedder in GoGreen Seller AI and AutoDiag AI (which otherwise falls back to TF-IDF hashing). Most products do not actively call it in normal request paths.
Used in: Toolbelt Handyman, Workflow Hub, Sourcing AI, DOC-AI, Marketing AI, GoGreen Seller AI, AutoDiag AI, GGPI website, AI Concierge, Sell Me A Pen, Maximus Pet Store, Pecos River Traders, APEX, Recruiting AI, PoligoPro, VotigoPro, HouseKey, Tutor AI (Mixtral-8x7B default), Jarvis.
SDK: @huggingface/inference (Node), huggingface_hub (Python).
ElevenLabs (TTS)¶
What it is. High-quality text-to-speech. Multi-voice library + voice cloning. The portfolio default for synthesized voice output where Realtime API isn't streaming directly.
Used in: Toolbelt Handyman, Workflow Hub, Sourcing AI, DOC-AI, Marketing AI, GoGreen Seller AI (eleven_multilingual_v2), AutoDiag AI, OpenSentinel, GGPI website (eleven_turbo_v2_5), AI Concierge, SmartForms, Sell Me A Pen, Maximus Pet Store, Pecos River Traders, APEX, Recruiting AI, PoligoPro, VotigoPro, HouseKey, Tutor AI (eleven_multilingual_v2), Do Me A Ditty (ElevenLabs Music, speech-to-text and forced alignment — not TTS), Jarvis (Electron eleven_monolingual_v1; Tauri eleven_multilingual_v2). Jarvis (Tauri) also supports Fish Audio, and both Jarvis apps support FakeYou voices.
SDK: elevenlabs (Node and Python).
Stability AI (not used in portfolio)¶
What it is. Image generation (Stable Diffusion XL, SD3, etc.). An alternative to OpenAI image models.
Used in: Not used in the portfolio — covered for comparison.
Picovoice¶
What it is. On-device wake-word detection, voice-activity detection, speech-to-intent. Runs locally — no cloud round-trip.
Used in: Jarvis (Electron) — Porcupine wake word. Jarvis (Tauri) still lists Porcupine as a dependency but uses openWakeWord (ONNX, onnxruntime-web) as the primary detector.
Vercel AI SDK¶
What it is. TypeScript framework that abstracts every LLM provider behind a single streamText({model, messages, tools}) interface. Streaming-first, tool-use-native. Sits one layer above the raw SDKs.
Used in: Workflow Hub (ai ^4.1 with @ai-sdk/openai, anthropic, google, azure, xai).
LangChain¶
What it is. Python (and TypeScript) framework for chaining LLM calls, tools, and retrievers. Heavy abstractions, large API surface — useful when you want pre-built RAG/agent patterns out of the box.
Used in:
- AutoDiag AI — langchain 0.3.14 with langchain-anthropic and langchain-openai; RAG pipeline (TF-IDF + Pinecone semantic search).
- DOC-AI — langchain-core 1.6.6 with langchain-anthropic, -openai, -qdrant, -community; powers the LangChain answer engine (ChatAnthropic + FlatPayloadQdrantVectorStore).
Tradeoffs. Quick to start, can be hard to debug. Newer products prefer the Vercel AI SDK or hand-rolled loops.
LangSmith¶
What it is. LangChain's observability layer — traces every LLM call, tool invocation, and prompt; supports eval datasets.
Used in: DOC-AI (tracing).
LlamaIndex (not currently used)¶
What it is. Data-framework competitor to LangChain — leaner, focused on RAG pipelines. Strong on document loaders and ingestion.
Why not used. Where the portfolio needs heavy ingestion (DOC-AI), LangChain and in-house chunking won.
OpenRouter / Ollama / Groq / Mistral / DeepSeek¶
OpenSentinel talks to 9 providers via a provider-aware router with fallback chains and circuit breakers: - Anthropic, OpenAI, xAI Grok, Gemini — the "big four." - Groq — fast Llama / Mixtral inference. - Mistral — direct API for the Mistral models. - OpenRouter — gateway that fronts hundreds of models from one API. - Ollama — local inference on the host machine. - A custom-endpoint slot for whatever's next.
Beyond OpenSentinel: Workflow Hub reaches Groq, DeepSeek and Mistral through OpenAI-compatible endpoints; Recruiting AI configures Groq and DeepSeek; HouseKey configures Mistral, Groq and DeepSeek (8 providers in all). Ollama also runs as a local provider in Jarvis (Tauri, localhost:11434).
The unified ai-providers service pattern¶
What it is. Most products ship a file like src/services/ai-providers.ts (Toolbelt Handyman, GGPI website), packages/ai/src/ai-providers.ts (Workflow Hub), src/services/ai_providers.py (AutoDiag AI), ai_providers.py (DOC-AI, with failover), or a PHP service (VotigoPro; AiProviderService.php in Maximus Pet Store and Pecos River Traders, plain Http:: calls with no vendor SDK) that:
- Reads provider keys (
OPENAI_API_KEY,ANTHROPIC_API_KEY,XAI_API_KEY,GEMINI_API_KEY, HuggingFace token,ELEVENLABS_API_KEY) from env. - Exposes
chat({provider, model, messages, tools})andembed({provider, text}). - Falls back to the next provider on rate-limit / error (DOC-AI failover, OpenSentinel fallback chains).
- Supports per-feature provider selection (GoGreen Seller AI, Recruiting AI per-capability config, SmartForms per-tenant
/settings/aioverride).
Tutor AI uses official vendor SDKs behind a fallback chain (AI_FALLBACK_PROVIDERS); Jarvis calls the vendor REST APIs directly (Electron) or through reqwest in Rust (Tauri). SuperCabs has its own packages/ai llmClient with budget and cache layers, and SmartForms routes by task (classification to Haiku 4.5, generation to Sonnet 5).
Why it matters. No vendor lock-in. Switching the default chat provider is a one-line config change.
Voice / Speech stack at a glance¶
| Component | Default in portfolio | Alternatives |
|---|---|---|
| STT | OpenAI Whisper API | Web Audio API |
| Realtime conversation | OpenAI Realtime API | none |
| TTS | ElevenLabs | OpenAI tts-1, Google Cloud TTS, Fish Audio and FakeYou (Jarvis) |
Image generation stack¶
| Component | Default | Alternatives |
|---|---|---|
| Text → image | gpt-image-1 / gpt-image-1-mini (Workflow Hub); GoGreen Seller AI has its own image generation and enhancement services |
Stability AI (not used), Midjourney (not used) |
| Image editing | GoGreen Seller AI enhancement services | Replicate |
Key reference documents¶
New_API_Keys_and_Secrets_Master.mdunderGoGreenDocs/GoGreen/keys/is the single source of truth for which keys belong to which product. Always check it before editing any.env.Integrations_Audit.mdhas the per-product provider matrix.