Skip to content
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

1. Stop using 'required' and use 'auto' for tool_choice parameter to avoid an infinite loop and 2. improve log readability by colorizing and do some minor refactorings #356

Merged
merged 2 commits into from
Oct 27, 2024

Conversation

hiroshinishio
Copy link
Collaborator

@hiroshinishio hiroshinishio commented Oct 27, 2024

Summary by Sourcery

Enhancements:

  • Improve log readability by colorizing log messages in the commit_changes and check_run_handler modules.

Copy link

sentry-io bot commented Oct 27, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: services/check_run_handler.py

Function Unhandled Issue
handle_check_run IndexError: list index out of range /webhook
Event Count: 79
handle_check_run KeyError: 'pull_requests' /webhook
Event Count: 2
handle_check_run KeyError: 'owner' /webhook
Event Count: 2
handle_check_run KeyError: 'update_github_comment' /webhook
Event Count: 1
📄 File: services/openai/commit_changes.py (Click to Expand)
Function Unhandled Issue
chat_with_agent KeyError: 'update_github_comment' /webhook
Event Count: 1
---

Did you find this useful? React with a 👍 or 👎

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @hiroshinishio - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@hiroshinishio hiroshinishio changed the title Improve log readability by colorizing and do some minor refactorings 1. Stop using 'required' and use 'auto' for tool_choice parameter to avoid an infinite loop and 2. improve log readability by colorizing and do some minor refactorings Oct 27, 2024
@hiroshinishio hiroshinishio merged commit b206d4b into main Oct 27, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant