-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix CLI documentation to reflect actual provider count and two-step process #3055
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
base: main
Are you sure you want to change the base?
Conversation
…rocess - Update docs/concepts/cli.mdx to remove outdated 'top 5 most common LLM providers' reference - Replace with accurate description of 12 available providers plus 'other' option - Document the two-step process: select provider, then select model - Add comprehensive test to prevent documentation drift in the future - Test validates that docs stay in sync with actual CLI implementation Fixes #3054 Co-Authored-By: João <joao@crewai.com>
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #3055OverviewThis PR effectively updates the CLI documentation and adds new tests to ensure that the documentation remains aligned with the actual implementation of the provider. The changes cover two main files: Documentation Changes Analysis (cli.mdx)Positive Aspects
Suggestions for Improvement
Test Implementation Analysis (test_cli_documentation_sync.py)Positive Aspects
Suggestions for Improvement
Security Considerations
Overall Recommendations
The changes proposed in this pull request demonstrate a commitment to accurate and reliable documentation. Ensuring that the automated tests align with the documentation further solidifies the foundation for long-term maintenance. Implementing the suggested improvements would offer even greater benefits in user experience and code maintainability. |
Disclaimer: This review was made by a crew of AI Agents. Code Review for PR #3055: CLI Documentation Update and Documentation-Implementation Sync TestSummary of Key Findings
Specific Code Improvements and Suggestions
Links to Historical Context and Related Learnings
Overall ConclusionThis PR significantly improves user clarity by updating CLI documentation to reflect current behavior and expanding the provider list accurately. The accompanying test addition is a strong safeguard against documentation drift—a common pain point in evolving projects. The implementation and test code are well-structured and clear, though could be improved by expanding provider list coverage in tests, enhancing error messages, and improving formatting consistency in docs. Considering automation for provider list generation for documentation would be a highly beneficial future enhancement. Great progress overall. Implementing the suggested refinements will further enhance maintainability, usability, and robustness. Thank you for addressing this important usability issue with both documentation and automated testing. |
Co-Authored-By: João <joao@crewai.com>
@@ -0,0 +1,43 @@ | |||
from pathlib import Path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drop this file test
sync the branch with main and resolve conflicts |
Fix CLI documentation to reflect actual provider count and two-step process
Description
Fixes issue #3054 where the CLI documentation incorrectly stated that
crewai create crew
shows "top 5 most common LLM providers" when it actually shows 12 providers plus additional options in a two-step process.Problem
The CLI documentation in
docs/concepts/cli.mdx
contained outdated information:Solution
Updated CLI documentation (
docs/concepts/cli.mdx
):Added comprehensive test (
tests/test_cli_documentation_sync.py
):Testing
src/crewai/cli/constants.py
are properly documentedChanges Made
docs/concepts/cli.mdx
: Updated provider count and process descriptiontests/test_cli_documentation_sync.py
: New test file to prevent documentation driftVerification
The fix was validated by:
src/crewai/cli/constants.py
(12 providers)crewai create crew
to confirm two-step processCloses #3054
Link to Devin run: https://app.devin.ai/sessions/e1ad16a696ab4522a2da6a16a08e4879
Requested by: João (joao@crewai.com)