From ea972118b51515b36c94106e0faa7f77e053fb5f Mon Sep 17 00:00:00 2001 From: Josh Klina Date: Wed, 26 Feb 2025 08:59:39 -0500 Subject: [PATCH] Add clarifying instructions to LM Studio config There are a few small gotchas when configuring LM Studio to work with aider. This adds a few clarifying instructions. --- aider/website/docs/llms/lm-studio.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/website/docs/llms/lm-studio.md b/aider/website/docs/llms/lm-studio.md index cff64ba45..f048ea543 100644 --- a/aider/website/docs/llms/lm-studio.md +++ b/aider/website/docs/llms/lm-studio.md @@ -10,16 +10,18 @@ To use LM Studio: ``` python -m pip install -U aider-chat +# Must set a value here even if its a dummy value export LM_STUDIO_API_KEY= # Mac/Linux setx LM_STUDIO_API_KEY # Windows, restart shell after setx +# LM Studio default server URL is http://localhost:1234/v1 export LM_STUDIO_API_BASE= # Mac/Linux setx LM_STUDIO_API_BASE # Windows, restart shell after setx aider --model lm_studio/ ``` - +**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) section for information on warnings which will occur