mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
copy
This commit is contained in:
parent
17aef7be7d
commit
28004bae2f
2 changed files with 22 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
||||||
---
|
|
||||||
parent: Connecting to LLMs
|
|
||||||
nav_order: 850
|
|
||||||
---
|
|
||||||
|
|
||||||
# Editing format
|
|
||||||
|
|
||||||
Aider uses different "edit formats" to collect code edits from different LLMs.
|
|
||||||
The "whole" format is the easiest for an LLM to use, but it uses a lot of tokens
|
|
||||||
and may limit how large a file can be edited.
|
|
||||||
Models which can use one of the diff formats are much more efficient,
|
|
||||||
using far fewer tokens.
|
|
||||||
Models that use a diff-like format are able to
|
|
||||||
edit larger files with less cost and without hitting token limits.
|
|
||||||
|
|
||||||
Aider is configured to use the best edit format for the popular OpenAI and Anthropic models
|
|
||||||
and the [other models recommended on the LLM page](https://aider.chat/docs/llms.html).
|
|
||||||
For lesser known models aider will default to using the "whole" editing format
|
|
||||||
since it is the easiest format for an LLM to use.
|
|
||||||
|
|
||||||
If you would like to experiment with the more advanced formats, you can
|
|
||||||
use these switches: `--edit-format diff` or `--edit-format udiff`.
|
|
22
aider/website/docs/llms/lm-studio.md
Normal file
22
aider/website/docs/llms/lm-studio.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
parent: Connecting to LLMs
|
||||||
|
nav_order: 400
|
||||||
|
---
|
||||||
|
|
||||||
|
# LM Studio
|
||||||
|
|
||||||
|
To use LM Studio:
|
||||||
|
|
||||||
|
```
|
||||||
|
python -m pip install -U aider-chat
|
||||||
|
|
||||||
|
export LM_STUDIO_API_KEY=<key> # Mac/Linux
|
||||||
|
setx LM_STUDIO_API_KEY <key> # Windows, restart shell after setx
|
||||||
|
|
||||||
|
export LM_STUDIO_API_BASE=<url> # Mac/Linux
|
||||||
|
setx LM_STUDIO_API_BASE <url> # Windows, restart shell after setx
|
||||||
|
|
||||||
|
aider --model lm_studio/<your-model-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue