Open d-walsh opened 1 week ago
It looks like an issue has occurred around fetching the files. The exception was fetch_relevant_files() got multiple values for argument 'images'. If this error persists contact team@sweep.dev.
@d-walsh, editing this issue description to include more details will automatically make me relaunch. Please join our community forum for support (tracking_id=943d227f80)
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
None
)[!TIP] I can email you when I complete this pull request if you set up your email here!
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
sweepai/utils/ticket_utils.py
Modify sweepai/utils/ticket_utils.py with contents: In the `fetch_relevant_files` function:
Locate the line that calls multi_get_top_k_snippets.stream()
, which looks like:
for message, ranked_snippets_list, snippets, content_to_lexical_score_list in multi_get_top_k_snippets.stream(
cloned_repo, [query], k, do_not_use_file_cache=do_not_use_file_cache, use_repo_dir=use_repo_dir, seed=seed, *args, **kwargs, images=images
):
Remove the images=images
parameter from the call, so it becomes:
for message, ranked_snippets_list, snippets, content_to_lexical_score_list in multi_get_top_k_snippets.stream(
cloned_repo, [query], k, do_not_use_file_cache=do_not_use_file_cache, use_repo_dir=use_repo_dir, seed=seed, *args, **kwargs
):
This will resolve the TypeError
by no longer passing the unexpected images
argument to multi_get_top_k_snippets.stream()
.
Working on it...
π‘ To recreate the pull request edit the issue title or description. Something wrong? Let us know.
This is an automated message generated by Sweep AI.
None
)[!TIP] I can email you when I complete this pull request if you set up your email here!
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
sweepai/utils/ticket_utils.py
Modify sweepai/utils/ticket_utils.py with contents: In the `fetch_relevant_files` function:
Locate the line that calls multi_get_top_k_snippets.stream()
, which looks like:
for message, ranked_snippets_list, snippets, content_to_lexical_score_list in multi_get_top_k_snippets.stream(
cloned_repo, [query], k, do_not_use_file_cache=do_not_use_file_cache, use_repo_dir=use_repo_dir, seed=seed, *args, **kwargs, images=images
):
Remove the images=images
parameter from the call, so it becomes:
for message, ranked_snippets_list, snippets, content_to_lexical_score_list in multi_get_top_k_snippets.stream(
cloned_repo, [query], k, do_not_use_file_cache=do_not_use_file_cache, use_repo_dir=use_repo_dir, seed=seed, *args, **kwargs
):
This will resolve the TypeError
by no longer passing the unexpected images
argument to multi_get_top_k_snippets.stream()
.
Working on it...
π‘ To recreate the pull request edit the issue title or description. Something wrong? Let us know.
This is an automated message generated by Sweep AI.
Details
webhook | INFO: 172.25.0.1:44898 - "POST / HTTP/1.1" 200 OK webhook | Exception in thread Thread-1 (run_on_ticket): webhook | Traceback (most recent call last): webhook | File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner webhook | self.run() webhook | File "/usr/local/lib/python3.10/threading.py", line 953, in run webhook | self._target(*self._args, *self._kwargs) webhook | File "/app/sweepai/api.py", line 113, in run_on_ticket webhook | return on_ticket(args, **kwargs, tracking_id=tracking_id) webhook | File "/app/sweepai/chat/api.py", line 200, in wrapper webhook | raise e webhook | File "/app/sweepai/chat/api.py", line 193, in wrapper webhook | result = function( webhook | File "/app/sweepai/handlers/on_ticket.py", line 729, in on_ticket webhook | raise e webhook | File "/app/sweepai/handlers/on_ticket.py", line 508, in on_ticket webhook | raise e webhook | File "/app/sweepai/handlers/on_ticket.py", line 425, in on_ticket webhook | for message, repo_context_manager in fetch_relevant_files.stream( webhook | TypeError: fetch_relevant_files() got multiple values for argument 'images'
Branch
No response
Checklist
- [ ] ``sweepai/utils/ticket_utils.py``