Model providers: OpenAI/xAI/Ollama + run several at once #237
Reference in New Issue
Block a user
Delete Branch "multi-provider-openai-xai-ollama"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extends the #215 abstraction so you can use OpenAI, xAI, and Ollama and configure several at once.
OpenAICompatibleLLMProvider/OpenAICompatibleEmbeddingProvider— one impl (officialopenaiSDK) covers OpenAI, xAI (api.x.ai/v1), Ollama (…:11434/v1), OpenRouter, etc. (differ only by base_url/key/model).build_llm_providers()returns every provider whose creds are set → run several concurrently;get_llm_provider(name)selects by name, falling back toDEFAULT_LLM_PROVIDER, then Null.ANTHROPIC_*/OPENAI_*/XAI_*/OLLAMA_*) +DEFAULT_LLM_PROVIDER/DEFAULT_EMBEDDING_PROVIDER; documented in.env.example. Defaults keep AI off.Tests: multi-provider selection, default resolution, disabled-without-creds, null fail-loud. 87 passed. Relates to #215.
🤖 Generated with Claude Code