-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for custom LLM implementations #2277
base: main
Are you sure you want to change the base?
Conversation
Co-Authored-By: Joe Moura <[email protected]>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment: Custom LLM ImplementationOverviewThis pull request introduces significant enhancements by implementing support for custom Large Language Models (LLMs) through the new abstract base class Documentation Review (docs/custom_llm.md)The documentation is overall well-structured and informative, containing relevant examples. However, improvements can be made in the following areas:
Code Analysis1.
|
Co-Authored-By: Joe Moura <[email protected]>
Co-Authored-By: Joe Moura <[email protected]>
… List[BaseTool] Co-Authored-By: Joe Moura <[email protected]>
…tation, and test coverage Co-Authored-By: Joe Moura <[email protected]>
This commit moves the BaseLLM abstract base class from llm.py to a new file llms/base_llm.py to improve code organization. The changes include: - Creating a new file src/crewai/llms/base_llm.py - Moving the BaseLLM class to the new file - Updating imports in __init__.py and llm.py to reflect the new location - Updating test cases to use the new import path The refactoring maintains the existing functionality while improving the project's module structure.
@bhancockio can you review this PR when you have time |
Waiting the feature! |
Fixes #2276. Adds support for custom LLM implementations that don't rely on litellm's authentication mechanism. This allows users to implement their own LLM classes with custom authentication methods like JWT-based authentication.
Changes
Documentation
Added a new documentation file that explains how to create and use custom LLM implementations, including examples for JWT-based authentication.
Link to Devin run: https://app.devin.ai/sessions/c45e76c4de5a45d2af4c486bed8044f1