-
-
Notifications
You must be signed in to change notification settings - Fork 6
update base class to use the new ChatMessageSolver api #15
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
Conversation
|
Warning Rate limit exceeded@JarbasAl has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 3 minutes and 45 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (2)
WalkthroughThis pull request updates Python versions across multiple GitHub Actions workflow files from Python 3.8 to Python 3.11. The changes are consistent across Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🔭 Outside diff range comments (1)
.github/workflows/release_workflow.yml (1)
Line range hint
41-49: Update actions/setup-python to latest version.The
publish_pypijob is using an outdated version ofactions/setup-python@v1. Consider updating to v2 or v4 for improved features and security.Apply this diff to update the action:
- name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: "3.11"🧰 Tools
🪛 actionlint (1.7.4)
47-47: the runner of "actions/setup-python@v1" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🧹 Nitpick comments (2)
ovos_solver_openai_persona/__init__.py (1)
78-78: Consider adding multilingual test cases.While the English test case is good, consider adding multiple test cases in different languages to ensure the solver works correctly across languages.
.github/workflows/release_workflow.yml (1)
49-49: Standardize Python versions across jobs.There's an inconsistency in Python versions between jobs:
publish_pypiuses Python 3.11propose_releaseuses Python 3.10Consider standardizing to the same version to ensure consistent behavior.
Also applies to: 75-75
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
.github/workflows/build_tests.yml(1 hunks).github/workflows/license_tests.yml(1 hunks).github/workflows/publish_stable.yml(1 hunks).github/workflows/release_workflow.yml(1 hunks)ovos_solver_openai_persona/__init__.py(2 hunks)ovos_solver_openai_persona/engines.py(4 hunks)
🔥 Files not summarized due to errors (1)
- ovos_solver_openai_persona/engines.py: Error: Disallowed special token found: <|im_end|>
🔇 Additional comments (6)
ovos_solver_openai_persona/__init__.py (2)
45-45: LGTM! Improved error handling for None responses.The addition of the None check is a good defensive programming practice that prevents potential
AttributeErrorexceptions.
67-69: Verify development configuration.The configuration appears to be using a local development endpoint (
http://10.42.0.109:8401). Please ensure this is intentional and not meant for production.Consider using environment variables or configuration files to manage different environments:
- bot = OpenAIPersonaSolver({"key": "sk-xxxx", - "model": 'mixtral-8x7b', - "api_url": "http://10.42.0.109:8401"}) + bot = OpenAIPersonaSolver({ + "key": os.getenv("OPENAI_API_KEY", "sk-xxxx"), + "model": os.getenv("OPENAI_MODEL", "mixtral-8x7b"), + "api_url": os.getenv("OPENAI_API_URL", "http://10.42.0.109:8401") + }).github/workflows/build_tests.yml (1)
16-16: LGTM! Python version update.Updating to Python 3.11 is a good choice as it brings performance improvements and new features.
.github/workflows/license_tests.yml (1)
19-19: LGTM! Consistent Python version update.The Python version update to 3.11 maintains consistency with other workflow files.
.github/workflows/publish_stable.yml (1)
29-29: LGTM! Consistent Python version update.The Python version update to 3.11 maintains consistency with other workflow files.
.github/workflows/release_workflow.yml (1)
49-49: Verify minimum Python version requirements.The Python version has been updated to 3.11. Please ensure this aligns with the package's minimum Python version requirements and dependencies.
Run this script to check Python version requirements:
✅ Verification successful
Python 3.11 upgrade appears compatible
No explicit Python version constraints found in the package configuration, and the dependencies don't indicate any compatibility issues with Python 3.11.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check Python version requirements in setup.py and requirements.txt # Check setup.py for Python version requirements echo "Checking setup.py for Python version requirements..." rg -A 5 "python_requires" setup.py # Check requirements.txt for any version-specific dependencies echo "Checking requirements.txt for version-specific dependencies..." if [ -f requirements.txt ]; then cat requirements.txt fi # Check package dependencies for Python version requirements echo "Checking package dependencies..." if [ -f setup.py ]; then python3 setup.py egg_info if [ -f *.egg-info/requires.txt ]; then cat *.egg-info/requires.txt fi fiLength of output: 1456
Script:
#!/bin/bash # Check for Python version constraints in other configuration files echo "Checking pyproject.toml..." if [ -f pyproject.toml ]; then cat pyproject.toml fi echo -e "\nChecking setup.cfg..." if [ -f setup.cfg ]; then cat setup.cfg fi echo -e "\nChecking ovos-plugin-manager Python version support..." pip show ovos-plugin-manager 2>/dev/null || echo "Package not found in sandbox environment" # Additional check for any Python version related files echo -e "\nChecking for Python version related files..." fd -g "*requirements*.txt" -g "*.toml" -g "*.cfg" -g "tox.ini"Length of output: 787
update base class to use the new
ChatMessageSolverapiSummary by CodeRabbit
Chores
Bug Fixes
get_spoken_answermethod to handle potentialNoneresponsesTests