From a98d9720411b98e6991666e3d73a3c042c0fe992 Mon Sep 17 00:00:00 2001 From: Tal Date: Tue, 6 Aug 2024 08:02:07 +0300 Subject: [PATCH] Update PR_agent_pro_models.md --- docs/docs/usage-guide/PR_agent_pro_models.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/docs/usage-guide/PR_agent_pro_models.md b/docs/docs/usage-guide/PR_agent_pro_models.md index 6f4f412e..9c5c8441 100644 --- a/docs/docs/usage-guide/PR_agent_pro_models.md +++ b/docs/docs/usage-guide/PR_agent_pro_models.md @@ -2,7 +2,7 @@ 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. +However, users can change the model used by PR-Agent Pro to Claude-3.5-sonnet, which also excels at code tasks. To do so, add the following to your [configuration](https://pr-agent-docs.codium.ai/usage-guide/configuration_options/) file: ``` @@ -10,6 +10,15 @@ To do so, add the following to your [configuration](https://pr-agent-docs.codium model="claude-3-5-sonnet" ``` +Note that Claude models tend to give lower scores for each suggestion, so if you are using a [threshold](https://pr-agent-docs.codium.ai/tools/improve/#configuration-options): +``` +[pr_code_suggestions] +suggestions_score_threshold=... +``` +You might need to adjust this value when switching models. + +### Dedicated models per tool + 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] @@ -18,4 +27,4 @@ pr_commands = [ "/review --pr_reviewer.num_code_suggestions=0", "/improve --config.model=claude-3-5-sonnet", ] -``` \ No newline at end of file +```