mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
cleanup --model-metadata-file
This commit is contained in:
parent
2f6e360188
commit
fb3cc98da5
8 changed files with 60 additions and 49 deletions
|
@ -26,27 +26,6 @@ Put a line in it like this to specify your api key:
|
|||
openai-api-key: sk-...
|
||||
```
|
||||
|
||||
## Registering Models not in litellm
|
||||
|
||||
You can register model info and costs 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",
|
||||
},
|
||||
}
|
||||
```
|
||||
see [litellm's model definitions](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json) for examples
|
||||
|
||||
## Enable Playwright
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue