mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
update docs
This commit is contained in:
parent
58965a9cff
commit
568d72ebe8
3 changed files with 26 additions and 1 deletions
|
@ -26,6 +26,27 @@ Put a line in it like this to specify your api key:
|
|||
openai-api-key: sk-...
|
||||
```
|
||||
|
||||
## Registering Models not in litellm
|
||||
|
||||
You can register models info and cost with litellm by adding one or more of the following files
|
||||
* {HomeDir}/.aider.models.json
|
||||
* {GitRoot}/.aider.models.json
|
||||
* {CWD}/.aider.models.json
|
||||
* or via the command line argument `model-file`
|
||||
If the files above exists, they will be loaded in that order. Files loaded last will take priority.
|
||||
The json file should be formated as follows
|
||||
```
|
||||
{
|
||||
"gpt-4": {
|
||||
"max_tokens": 8192,
|
||||
"input_cost_per_token": 0.00003,
|
||||
"output_cost_per_token": 0.00006,
|
||||
"litellm_provider": "openai",
|
||||
"mode": "chat",
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
## Enable Playwright
|
||||
|
||||
Aider supports adding web pages to the chat with the `/web <url>` command.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue