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

Fix issue #188: '[Enhancement] PR update message with summarized details #203

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

neubig
Copy link
Contributor

@neubig neubig commented Oct 31, 2024

Fixes #188

Comment on lines 309 to 311
comment_message = "OpenHands has updated the PR with the following changes:\n\n"
for explanation in explanations:
comment_message += f"- {explanation}\n"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

After this message is posted, it should be summarized using a language model to make it more concise. To call the language model, we can use the same litellm.completion() call as is used in the guess_success() function with a different prompt specifically for summarization.

@neubig neubig merged commit 85a4da7 into main Oct 31, 2024
2 checks passed
@neubig neubig deleted the openhands-fix-issue-188-try3 branch October 31, 2024 02:11
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.

[Enhancement] PR update message with summarized details
2 participants