From 8182a4afc0ce2f310b39d1be258e40d57a1f6cf2 Mon Sep 17 00:00:00 2001 From: mrT23 Date: Thu, 27 Feb 2025 11:06:31 +0200 Subject: [PATCH] docs: update default model to o3-mini and improve language configuration instructions --- README.md | 2 +- docs/docs/usage-guide/additional_configurations.md | 2 +- pr_agent/agent/pr_agent.py | 4 ++-- pr_agent/settings/configuration.toml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ed4fdd8c..ddd77a23 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ PR-Agent aims to help efficiently review and handle pull requests, by providing ## News and Updates ### Feb 27, 2025 - +- Updated the default model to `o3-mini` for all tools. You can still use the `gpt-4o` as the default model by setting the `model` parameter in the configuration file. - Important updates and bug fixes for Azure DevOps, see [here](https://github.com/qodo-ai/pr-agent/pull/1583) - Added support for adjusting the [response language](https://qodo-merge-docs.qodo.ai/usage-guide/additional_configurations/#language-settings) of the PR-Agent tools. diff --git a/docs/docs/usage-guide/additional_configurations.md b/docs/docs/usage-guide/additional_configurations.md index 8021bccc..e8058eac 100644 --- a/docs/docs/usage-guide/additional_configurations.md +++ b/docs/docs/usage-guide/additional_configurations.md @@ -72,7 +72,7 @@ response_language: "it-IT" This will set the response language globally for all the commands to Italian. -> **Important:** Note that only dynamic text generated by the AI model is translated to the configured language. Static text such as labels and table headers that are not part of the AI models response will remain in US English. In addition, the model you are using must support the specified language. +> **Important:** Note that only dynamic text generated by the AI model is translated to the configured language. Static text such as labels and table headers that are not part of the AI models response will remain in US English. In addition, the model you are using must have good support for the specified language. ## Working with large PRs diff --git a/pr_agent/agent/pr_agent.py b/pr_agent/agent/pr_agent.py index 7cae3839..126452d2 100644 --- a/pr_agent/agent/pr_agent.py +++ b/pr_agent/agent/pr_agent.py @@ -83,9 +83,9 @@ class PRAgent: if hasattr(setting, 'extra_instructions'): current_extra_instructions = setting.extra_instructions if current_extra_instructions: - setting.extra_instructions = current_extra_instructions+ f"\n======\n\nIn addition, in your reply the generated answers MUST be in a language equivalent to locale code: {response_language}. This is crucial." + setting.extra_instructions = current_extra_instructions+ f"\n======\n\nIn addition, Your response MUST be written in the language corresponding to local code: {response_language}. This is crucial." else: - setting.extra_instructions = f"The generated answers in your reply MUST be in a language equivalent to locale code: '{response_language}'. This is crucial." + setting.extra_instructions = f"Your response MUST be written in the language corresponding to locale code: '{response_language}'. This is crucial." action = action.lstrip("/").lower() if action not in command2class: diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index 27f17385..4e004722 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -4,8 +4,8 @@ [config] # models -model="gpt-4o-2024-11-20" -fallback_models=["gpt-4o-2024-08-06"] +model="o3-mini" +fallback_models=["gpt-4o-2024-11-20"] #model_weak="gpt-4o-mini-2024-07-18" # optional, a weaker model to use for some easier tasks response_language="en-US" # Language locales code for PR responses in ISO 3166 and ISO 639 format (e.g., "en-US", "it-IT", "zh-CN", ...) # CLI