From 28004bae2f69fe78f2ab2e84fff6b1ad5bd62e02 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 22 Nov 2024 07:06:43 -0800 Subject: [PATCH] copy --- aider/website/docs/llms/editing-format.md | 22 ---------------------- aider/website/docs/llms/lm-studio.md | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 aider/website/docs/llms/editing-format.md create mode 100644 aider/website/docs/llms/lm-studio.md diff --git a/aider/website/docs/llms/editing-format.md b/aider/website/docs/llms/editing-format.md deleted file mode 100644 index 018b82f79..000000000 --- a/aider/website/docs/llms/editing-format.md +++ /dev/null @@ -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`. diff --git a/aider/website/docs/llms/lm-studio.md b/aider/website/docs/llms/lm-studio.md new file mode 100644 index 000000000..404c60fc6 --- /dev/null +++ b/aider/website/docs/llms/lm-studio.md @@ -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= # Mac/Linux +setx LM_STUDIO_API_KEY # Windows, restart shell after setx + +export LM_STUDIO_API_BASE= # Mac/Linux +setx LM_STUDIO_API_BASE # Windows, restart shell after setx + +aider --model lm_studio/ +``` + +