Skip to content

Commit

Permalink
Merge pull request #164 from Cloud-Code-AI/163-reduce-the-description…
Browse files Browse the repository at this point in the history
…-size

163 reduce the description size
  • Loading branch information
sauravpanda authored May 31, 2024
2 parents 4f60c3c + 92c294a commit 1273495
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
<a href="https://github.com/Cloud-Code-AI/cloudcode/pulse">
<img src="https://img.shields.io/github/commit-activity/w/Cloud-Code-AI/cloudcode" alt="Commits-per-week">
</a>
<a href="https://discord.gg/W33Hh5yWpj">
<img src="https://img.shields.io/discord/1156434217966764033.svg?style=social&logo=discord" alt="Discord">
</a>
<a href="https://opensource.org/license/agpl-v3">
<img src="https://img.shields.io/badge/License-AGPL%20v3-blue.svg" alt="License: AGPL-3.0">
</a>
Expand Down
16 changes: 6 additions & 10 deletions kaizen/llms/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,19 @@

PR_DESCRIPTION_PROMPT = """
You are a skilled developer reviewing a pull request.
Using the provided information, generate a concise description for this pull request, covering:
Using the provided information, generate a comprehensive description for this pull request. Cover the following points:
Main purpose and scope of changes
Significant modifications, refactoring, or new features
1. Summarize the main purpose and scope of the changes.
2. Highlight any significant modifications, refactoring, or new features introduced.
Provide output in following format:
Provide output in the format:
{{"desc": "<PR_DESCRIPTION_IN_MARKDOWN>"}}
Your description should be clear, concise, and tailored to help reviewers understand the pull request's impact and make an informed decision.
Keep the description clear and tailored to help reviewers understand the pull request's impact, but avoid unnecessary details.
INFORMATION:
Pull Request Title: {PULL_REQUEST_TITLE}
Pull Request Description: {PULL_REQUEST_DESC}
Code Diff:
```{CODE_DIFF}```
{CODE_DIFF}
"""
# TODO: Rephrase prompt to make it more clear and accurate.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kaizen-cloudcode"
version = "0.1.16"
version = "0.1.17"
description = "An intelligent coding companion that accelerates your development workflow by providing efficient assistance, enabling you to craft high-quality code more rapidly."
authors = ["Saurav Panda <saurav.panda@cloudcode.ai>"]
license = "Apache2.0"
Expand Down

0 comments on commit 1273495

Please sign in to comment.