This commit is contained in:
Paul Gauthier 2024-06-08 12:40:23 -07:00
parent 8f70c359a6
commit af21315d51
4 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,57 @@
Aider tries to sanity check that it is configured correctly
to work with the LLM you specified:
- It checks to see that all required environment variables are set for the model. These variables are required to configure things like API keys, API base URLs, etc.
These settings are required to be correct.
- It checks a metadata database to look up the context window size and token costs for the model.
It's usually OK if this extra metadata isn't available.
Sometimes one or both of these checks will fail, so aider will issue
some of the following warnings.
## Missing environment variables
```
Model azure/gpt-4-turbo: Missing these environment variables:
- AZURE_API_BASE
- AZURE_API_VERSION
- AZURE_API_KEY
```
You need to set the listed environment variables.
Otherwise you will get error messages when you start chatting with the model.
## Unknown which environment variables are required
```
Model gpt-5: Unknown which environment variables are required.
```
Aider is unable verify the environment because it doesn't know
which variables are required for the model.
If required variables are missing,
you may get errors when you attempt to chat with the model.
You can look in the
[litellm provider documentation](https://docs.litellm.ai/docs/providers)
to see if the required variables are listed there.
## Context window size and token costs unavailable.
```
Model foobar: Unknown model, context window size and token costs unavailable.
```
If you specify a model that aider has never heard of, you will get an
"unknown model" warning.
This means aider doesn't know the context window size and token costs
for that model.
Some minor functionality will be limited when using such models, but
it's not really a significant problem.
Aider will also try to suggest similarly named models,
in case you made a typo or mistake when specifying the model name.

Binary file not shown.

View file

@ -0,0 +1,39 @@
---
title: GitHub Codespaces
parent: Installation
nav_order: 900
---
# GitHub Codespaces
You can use aider in GitHub Codespaces via the built-in Terminal pane.
See below for an example,
but you can see the
[main install instructions](/docs/install.html)
for all the details.
<div class="video-container">
<video controls>
<source src="/assets/codespaces.mp4" type="video/mp4">
<a href="/assets/codespaces.mp4">Aider browser UI demo video</a>
</video>
</div>
<style>
.video-container {
position: relative;
padding-bottom: 101.89%; /* 1080 / 1060 = 1.0189 */
height: 0;
overflow: hidden;
}
.video-container video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>

View file

@ -0,0 +1,8 @@
---
parent: Troubleshooting
nav_order: 30
---
# Getting help
{% include help.md %}