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

Sweep: #37

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Sweep: #37

wants to merge 2 commits into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Apr 9, 2024

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

Description

This pull request introduces a new utility function for making asynchronous calls with retry logic, and integrates this function into various parts of the existing codebase to enhance reliability and error handling.

Summary

  • Added a new utility function async_call_with_retry in async_utils.py to perform asynchronous calls with retry capability on timeout or client errors.
  • Modified main.py to utilize the async_call_with_retry function for making asynchronous calls in several places, including the AiAgent function and its usages throughout the file. This change aims to improve the robustness of these calls by adding retry logic.
  • The async_call_with_retry function is designed to retry the specified asynchronous function upon encountering asyncio.TimeoutError or aiohttp.ClientError, with an exponential backoff strategy.
  • Changes in main.py include updating calls to AiAgent and other asynchronous functions to use async_call_with_retry, specifying a timeout of 10 seconds and a retry count of 3.

Fixes #36.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To get Sweep to edit this pull request, you can:

  • Comment below, and Sweep can edit the entire PR
  • Comment on a file, Sweep will only modify the commented file
  • Edit the original issue to get Sweep to recreate the PR from scratch

This is an automated message generated by Sweep AI.

Copy link
Contributor Author

sweep-ai bot commented Apr 9, 2024

Rollback Files For Sweep

  • Rollback changes to main.py
  • Rollback changes to async_utils.py

This is an automated message generated by Sweep AI.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Apr 9, 2024
@sweep-ai sweep-ai bot mentioned this pull request Apr 9, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sweep:
0 participants