mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Merge branch 'main' of github.com:Aider-AI/aider
This commit is contained in:
commit
1b5777821f
1 changed files with 3 additions and 1 deletions
|
@ -10,16 +10,18 @@ To use LM Studio:
|
||||||
```
|
```
|
||||||
python -m pip install -U aider-chat
|
python -m pip install -U aider-chat
|
||||||
|
|
||||||
|
# Must set a value here even if its a dummy value
|
||||||
export LM_STUDIO_API_KEY=<key> # Mac/Linux
|
export LM_STUDIO_API_KEY=<key> # Mac/Linux
|
||||||
setx LM_STUDIO_API_KEY <key> # Windows, restart shell after setx
|
setx LM_STUDIO_API_KEY <key> # Windows, restart shell after setx
|
||||||
|
|
||||||
|
# LM Studio default server URL is http://localhost:1234/v1
|
||||||
export LM_STUDIO_API_BASE=<url> # Mac/Linux
|
export LM_STUDIO_API_BASE=<url> # Mac/Linux
|
||||||
setx LM_STUDIO_API_BASE <url> # Windows, restart shell after setx
|
setx LM_STUDIO_API_BASE <url> # Windows, restart shell after setx
|
||||||
|
|
||||||
aider --model lm_studio/<your-model-name>
|
aider --model lm_studio/<your-model-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Note:** Even though LM Studio doesn't require an API Key out of the box the `LM_STUDIO_API_KEY` must have a dummy value like `dummy-api-key` set or the client request will fail trying to send an empty `Bearer` token.
|
||||||
|
|
||||||
See the [model warnings](warnings.html)
|
See the [model warnings](warnings.html)
|
||||||
section for information on warnings which will occur
|
section for information on warnings which will occur
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue