mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
copy
This commit is contained in:
parent
12eb203a6a
commit
440d087032
4 changed files with 76 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
### Aider v0.43.0
|
||||
|
||||
- Use `/help <question>` to ask for help about using aider, customizing settings, troubleshooting, using LLMs, etc.
|
||||
- Use `/help <question>` to [ask for help about using aider](https://aider.chat/docs/troubleshooting/support.html), customizing settings, troubleshooting, using LLMs, etc.
|
||||
- Allow multiple use of `/undo`.
|
||||
- All config/env/yml/json files now load from home, git root, cwd and named command line switch.
|
||||
- New `$HOME/.aider/caches` dir for app-wide expendable caches.
|
||||
|
|
|
@ -531,7 +531,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
|||
args.pretty = False
|
||||
io.tool_output("VSCode terminal detected, pretty output has been disabled.")
|
||||
|
||||
io.tool_output("Use /help to see in-chat commands, run with --help to see cmd line args")
|
||||
io.tool_output("Use /help <question> to ask for help, run with --help to see cmd line args")
|
||||
|
||||
if git_root and Path.cwd().resolve() != Path(git_root).resolve():
|
||||
io.tool_error(
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{: .tip }
|
||||
Use `/help <question>` to ask for help about using aider,
|
||||
Use `/help <question>` to
|
||||
[ask for help about using aider](/docs/troubleshooting/support.html),
|
||||
customizing settings, troubleshooting, using LLMs, etc.
|
||||
|
||||
|
|
|
@ -3,6 +3,77 @@ parent: Troubleshooting
|
|||
nav_order: 30
|
||||
---
|
||||
|
||||
# Getting help
|
||||
# Using /help
|
||||
|
||||
Aider now has a built in chatbot that
|
||||
you can ask for help about using aider,
|
||||
customizing settings, troubleshooting, using LLMs, etc.
|
||||
Type `/help <question>` and
|
||||
aider will respond with helpful information.
|
||||
|
||||
Behind the scenes, aider has indexed all of its
|
||||
[documentation](https://aider.chat/).
|
||||
It uses the question to find relevant docs
|
||||
and share them with the LLM to do
|
||||
retrieval augmented generation (RAG)
|
||||
The LLM also has the full context of your ongoing
|
||||
aider chat,
|
||||
so it can help with the exact issue you might be facing.
|
||||
|
||||
|
||||
<div class="chat-transcript" markdown="1">
|
||||
|
||||
> Aider v0.42.1-dev
|
||||
> Models: claude-3-5-sonnet with diff edit format
|
||||
> Repo-map: using 1024 tokens
|
||||
> Use /help \<question\> to ask for help, run with --help to see cmd line args
|
||||
|
||||
#### /help is the .env file global or for a git repo?
|
||||
|
||||
Based on the provided documentation, here's the answer to your question about the .env file in aider:
|
||||
|
||||
The .env file in aider can be both global and specific to a git repository. Aider looks for .env files in multiple locations, with the following priority order:
|
||||
|
||||
1. Your home directory (global)
|
||||
2. The root of your git repo (repo-specific)
|
||||
3. The current directory
|
||||
4. A file specified with the `--env-file <filename>` parameter
|
||||
|
||||
If multiple .env files exist in these locations, they are loaded in the order listed above, with files loaded last taking priority. This means you can have a global .env file in your home directory with general settings, and then override or add to those settings with a repo-specific .env file in your git repository root.
|
||||
|
||||
Here are some relevant documentation links that you might find helpful:
|
||||
|
||||
- https://aider.chat/docs/config.html
|
||||
- https://aider.chat/docs/config/dotenv.html
|
||||
|
||||
The ability to use both global and repo-specific .env files allows for flexible configuration, where you can set default values globally and override them on a per-project basis as needed.
|
||||
|
||||
</div>
|
||||
<div class="chat-transcript" markdown="1">
|
||||
|
||||
#### /help can i use local LLMs?
|
||||
|
||||
Yes, you can use local LLMs with Aider. Here's a summary of the options:
|
||||
|
||||
1. Ollama: Aider supports using local models through Ollama.
|
||||
|
||||
2. OpenAI-compatible API: Aider can access local models that provide an OpenAI-compatible API.
|
||||
|
||||
3. Other local models: Aider uses the LiteLLM package to connect to various LLM providers, which may include options for running models locally.
|
||||
|
||||
However, it's important to note that Aider works best with more capable models. Less capable models may have difficulty properly returning "code edits," which could result in Aider not being able to edit your files and commit changes effectively.
|
||||
|
||||
For more detailed information on using local LLMs and connecting to various models, you might want to check out these relevant documentation pages:
|
||||
|
||||
- https://aider.chat/docs/llms.html
|
||||
- https://aider.chat/docs/llms/ollama.html
|
||||
- https://aider.chat/docs/llms/openai-compat.html
|
||||
|
||||
Keep in mind that the performance and capabilities of local LLMs may vary depending on the specific model and your hardware resources.
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
## Getting more help
|
||||
|
||||
{% include help.md %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue