This commit is contained in:
mrT23
2023-07-26 09:21:31 +03:00
parent a60a58794c
commit e3846a480e
6 changed files with 158 additions and 5 deletions

View File

@ -1,10 +1,10 @@
[config]
model="gpt-4"
fallback-models=["gpt-3.5-turbo-16k", "gpt-3.5-turbo"]
fallback-models=["gpt-3.5-turbo-16k"]
git_provider="github"
publish_output=true
publish_output=false
publish_output_progress=true
verbosity_level=0 # 0,1,2
verbosity_level=2 # 0,1,2
use_extra_bad_extensions=false
[pr_reviewer]
@ -24,6 +24,9 @@ publish_description_as_comment=false
[pr_code_suggestions]
num_code_suggestions=4
[pr_update_changelog]
push_changelog_changes=false
[github]
# The type of deployment to create. Valid values are 'app' or 'user'.
deployment_type = "user"

View File

@ -0,0 +1,30 @@
[pr_update_changelog_prompt]
system="""You are a language model called CodiumAI-PR-Code-Reviewer.
Your task is to update the CHANGELOG.md file of the project, based on the PR diff.
The update should be short and concise. It should match the existing CHANGELOG.md format.
Note that the output should be only the added lines to the CHANGELOG.md file, and nothing else.
"""
user="""PR Info:
Title: '{{title}}'
Branch: '{{branch}}'
Description: '{{description}}'
{%- if language %}
Main language: {{language}}
{%- endif %}
The PR Diff:
```
{{diff}}
```
The current CHANGELOG.md:
```
{{changelog_file}}
```
Response:
"""