mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 23:05:00 +00:00
Updated --sonnet to use Claude 3.5 Sonnet
This commit is contained in:
parent
559279c781
commit
6623110fb0
10 changed files with 21 additions and 19 deletions
|
@ -6,8 +6,8 @@
|
|||
Aider lets you pair program with LLMs,
|
||||
to edit code in your local git repository.
|
||||
Start a new project or work with an existing git repo.
|
||||
Aider works best with GPT-4o and Claude 3 Opus
|
||||
and can [connect to almost any LLM](https://aider.chat/docs/llms.html).
|
||||
Aider can [connect to almost any LLM](https://aider.chat/docs/llms.html).
|
||||
and works best with GPT-4o, Claude 3.5 Sonnet and Claude 3 Opus.
|
||||
|
||||
<p align="center">
|
||||
<img
|
||||
|
|
|
@ -7,7 +7,11 @@ import sys
|
|||
import configargparse
|
||||
|
||||
from aider import __version__, models
|
||||
from aider.args_formatter import MarkdownHelpFormatter, YamlHelpFormatter, DotEnvFormatter
|
||||
from aider.args_formatter import (
|
||||
DotEnvFormatter,
|
||||
MarkdownHelpFormatter,
|
||||
YamlHelpFormatter,
|
||||
)
|
||||
|
||||
from .dump import dump # noqa: F401
|
||||
|
||||
|
@ -43,10 +47,7 @@ def get_parser(default_config_files, git_root):
|
|||
help="Log the conversation with the LLM to this file (for example, .aider.llm.history)",
|
||||
)
|
||||
group.add_argument(
|
||||
"files",
|
||||
metavar="FILE",
|
||||
nargs="*",
|
||||
help="files to edit with an LLM (optional)"
|
||||
"files", metavar="FILE", nargs="*", help="files to edit with an LLM (optional)"
|
||||
)
|
||||
group.add_argument(
|
||||
"--openai-api-key",
|
||||
|
@ -75,7 +76,7 @@ def get_parser(default_config_files, git_root):
|
|||
const=opus_model,
|
||||
help=f"Use {opus_model} model for the main chat",
|
||||
)
|
||||
sonnet_model = "claude-3-sonnet-20240229"
|
||||
sonnet_model = "claude-3-5-sonnet-20240620"
|
||||
group.add_argument(
|
||||
"--sonnet",
|
||||
action="store_const",
|
||||
|
@ -516,6 +517,7 @@ def get_sample_yaml():
|
|||
return argparse.ArgumentParser.format_help(parser)
|
||||
return parser.format_help()
|
||||
|
||||
|
||||
def get_sample_dotenv():
|
||||
os.environ["COLUMNS"] = "120"
|
||||
sys.argv = ["aider"]
|
||||
|
@ -529,6 +531,7 @@ def get_sample_dotenv():
|
|||
return argparse.ArgumentParser.format_help(parser)
|
||||
return parser.format_help()
|
||||
|
||||
|
||||
def main():
|
||||
arg = sys.argv[1] if len(sys.argv[1:]) else None
|
||||
|
||||
|
@ -540,7 +543,6 @@ def main():
|
|||
print(get_sample_yaml())
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
status = main()
|
||||
sys.exit(status)
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
## Use claude-3-opus-20240229 model for the main chat
|
||||
#opus: false
|
||||
|
||||
## Use claude-3-sonnet-20240229 model for the main chat
|
||||
## Use claude-3-5-sonnet-20240620 model for the main chat
|
||||
#sonnet: false
|
||||
|
||||
## Use gpt-4-0613 model for the main chat
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
## Use claude-3-opus-20240229 model for the main chat
|
||||
#AIDER_OPUS=
|
||||
|
||||
## Use claude-3-sonnet-20240229 model for the main chat
|
||||
## Use claude-3-5-sonnet-20240620 model for the main chat
|
||||
#AIDER_SONNET=
|
||||
|
||||
## Use gpt-4-0613 model for the main chat
|
||||
|
|
|
@ -56,7 +56,7 @@ cog.outl("```")
|
|||
## Use claude-3-opus-20240229 model for the main chat
|
||||
#opus: false
|
||||
|
||||
## Use claude-3-sonnet-20240229 model for the main chat
|
||||
## Use claude-3-5-sonnet-20240620 model for the main chat
|
||||
#sonnet: false
|
||||
|
||||
## Use gpt-4-0613 model for the main chat
|
||||
|
|
|
@ -69,7 +69,7 @@ cog.outl("```")
|
|||
## Use claude-3-opus-20240229 model for the main chat
|
||||
#AIDER_OPUS=
|
||||
|
||||
## Use claude-3-sonnet-20240229 model for the main chat
|
||||
## Use claude-3-5-sonnet-20240620 model for the main chat
|
||||
#AIDER_SONNET=
|
||||
|
||||
## Use gpt-4-0613 model for the main chat
|
||||
|
|
|
@ -14,8 +14,8 @@ description: Aider can connect to most LLMs for AI pair programming.
|
|||
## Best models
|
||||
{: .no_toc }
|
||||
|
||||
**Aider works best with [GPT-4o](/docs/llms/openai.html) and
|
||||
[Claude 3 Opus](/docs/llms/anthropic.html),**
|
||||
**Aider works best with [GPT-4o](/docs/llms/openai.html),
|
||||
[Claude 3.5 Sonnet and Claude 3 Opus](/docs/llms/anthropic.html),**
|
||||
as they are the very best models for editing code.
|
||||
|
||||
## Free models
|
||||
|
|
|
@ -22,7 +22,7 @@ setx ANTHROPIC_API_KEY <key> # Windows
|
|||
# Claude 3 Opus
|
||||
aider --opus
|
||||
|
||||
# Claude 3 Sonnet
|
||||
# Claude 3.5 Sonnet
|
||||
aider --sonnet
|
||||
|
||||
# List models available from Anthropic
|
||||
|
|
|
@ -75,7 +75,7 @@ Use claude-3-opus-20240229 model for the main chat
|
|||
Environment variable: `AIDER_OPUS`
|
||||
|
||||
### `--sonnet`
|
||||
Use claude-3-sonnet-20240229 model for the main chat
|
||||
Use claude-3-5-sonnet-20240620 model for the main chat
|
||||
Environment variable: `AIDER_SONNET`
|
||||
|
||||
### `--4`
|
||||
|
|
|
@ -20,8 +20,8 @@ cog.out(text)
|
|||
Aider lets you pair program with LLMs,
|
||||
to edit code in your local git repository.
|
||||
Start a new project or work with an existing git repo.
|
||||
Aider works best with GPT-4o and Claude 3 Opus
|
||||
and can [connect to almost any LLM](https://aider.chat/docs/llms.html).
|
||||
Aider can [connect to almost any LLM](https://aider.chat/docs/llms.html).
|
||||
and works best with GPT-4o, Claude 3.5 Sonnet and Claude 3 Opus.
|
||||
|
||||
<p align="center">
|
||||
<img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue