Feature/integrate llm providers#28
Merged
Merged
Conversation
…, HuggingFace, etc.) Adds LLM_API_KEY/LLM_API_BASE_URL alongside the existing named providers (Anthropic, OpenAI, Gemini, Bedrock). When LLM_API_BASE_URL is set, requests route through CrewAI's native OpenAI-compatible client with the raw model id the endpoint expects; otherwise behavior is unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Add custom OpenAI-compatible endpoint alternative (NVIDIA NIM, Ollama, HuggingFace, etc.)
Contributor
Author
|
This should go to main branch to reflect all other llm providers |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/guides/configuration.md
Provider configuration (.env.example)
Only one provider can be active at a time. The file ships with Anthropic uncommented as the default. To switch, comment out the Anthropic block
and uncomment the target block:
--Provider: Anthropic (default — active)
ANTHROPIC_API_KEY=your-anthropic-api-key-here
DEFAULT_LLM_MODEL=anthropic/claude-sonnet-4-5-20250929
MANAGER_LLM_MODEL=anthropic/claude-opus-4-20250514
-- Provider: OpenAI (alternative)
--OPENAI_API_KEY=your-openai-api-key-here
--DEFAULT_LLM_MODEL=openai/gpt-4o
-- MANAGER_LLM_MODEL=openai/gpt-4o
--Provider: Google Gemini (alternative)
--GOOGLE_API_KEY=your-google-api-key-here
--DEFAULT_LLM_MODEL=gemini/gemini-2.5-flash
--MANAGER_LLM_MODEL=gemini/gemini-2.5-flash
Test plan