From 2be459e576747522dc887dc3ee353951c209bc70 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Wed, 17 Jul 2024 22:33:43 +0300 Subject: [PATCH] PR-Agent Pro Models --- docs/docs/usage-guide/PR_agent_pro_models.md | 21 ++++++++++++++++++++ docs/docs/usage-guide/index.md | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docs/docs/usage-guide/PR_agent_pro_models.md diff --git a/docs/docs/usage-guide/PR_agent_pro_models.md b/docs/docs/usage-guide/PR_agent_pro_models.md new file mode 100644 index 00000000..8a002353 --- /dev/null +++ b/docs/docs/usage-guide/PR_agent_pro_models.md @@ -0,0 +1,21 @@ +## PR-Agent Pro Models + +The default models used by PR-Agent Pro are OpenAI's GPT-4 models. We use a combination of GPT-4-Turbo and GPT-4o to strike a balance between speed and quality. + +However, users can change the model used by PR-Agent Pro to Claude-3.5-sonnet, which also excels in code tasks. +To do so, add the following you [configuration](https://pr-agent-docs.codium.ai/usage-guide/configuration_options/) file: + +``` +[config] +model="claude-3-5-sonnet" +``` + +You can also use different models for different tools. For example, you can use the Claude-3.5-sonnet model only for the `improve` tool (and keep the default GPT-4 model for the other tools) by adding the following to your configuration file: +``` +[github_app] +pr_commands = [ + "/describe --pr_description.final_update_message=false", + "/review --pr_reviewer.num_code_suggestions=0", + "/improve --config.model=claude-3-5-sonnet", +] +``` \ No newline at end of file diff --git a/docs/docs/usage-guide/index.md b/docs/docs/usage-guide/index.md index ce714c70..50fa6de1 100644 --- a/docs/docs/usage-guide/index.md +++ b/docs/docs/usage-guide/index.md @@ -20,4 +20,5 @@ This page provides a detailed guide on how to use PR-Agent. It includes informat - [Working with large PRs](./additional_configurations.md#working-with-large-prs) - [Changing a model](./additional_configurations.md#changing-a-model) - [Patch Extra Lines](./additional_configurations.md#patch-extra-lines) - - [Editing the prompts](./additional_configurations.md#editing-the-prompts) \ No newline at end of file + - [Editing the prompts](./additional_configurations.md#editing-the-prompts) +- [PR-Agent Pro Models](./PR_agent_pro_models.md) \ No newline at end of file