mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
* docs(docs): start implementing docs website * update video url * add autogenerated codebase docs for backend * precommit * update links * fix config and video * gh actions * rename * workdirs * path * path * fix doc1 * redo markdown * docs * change main folder name * simplify readme * add back architecture * Fix lint errors * lint * update poetry lock --------- Co-authored-by: Jim Su <jimsu@protonmail.com>
38 lines
1.6 KiB
Markdown
38 lines
1.6 KiB
Markdown
# Azure OpenAI LLM
|
|
|
|
## Completion
|
|
|
|
OpenDevin uses LiteLLM for completion calls. You can find their documentation on Azure [here](https://docs.litellm.ai/docs/providers/azure)
|
|
|
|
### Azure openai configs
|
|
|
|
When running the OpenDevin Docker image, you'll need to set the following environment variables using `-e`:
|
|
|
|
```
|
|
LLM_BASE_URL="<azure-api-base-url>" # e.g. "https://openai-gpt-4-test-v-1.openai.azure.com/"
|
|
LLM_API_KEY="<azure-api-key>"
|
|
LLM_MODEL="azure/<your-gpt-deployment-name>"
|
|
LLM_API_VERSION = "<api-version>" # e.g. "2024-02-15-preview"
|
|
```
|
|
|
|
:::note
|
|
You can find your ChatGPT deployment name on the deployments page in Azure. It could be the same with the chat model name (e.g. 'GPT4-1106-preview'), by default or initially set, but it doesn't have to be the same. Run opendevin, and when you load it in the browser, go to Settings and set model as above: "azure/<your-actual-gpt-deployment-name>". If it's not in the list, enter your own text and save it.
|
|
:::
|
|
|
|
## Embeddings
|
|
|
|
OpenDevin uses llama-index for embeddings. You can find their documentation on Azure [here](https://docs.llamaindex.ai/en/stable/api_reference/embeddings/azure_openai/)
|
|
|
|
### Azure openai configs
|
|
|
|
The model used for Azure OpenAI embeddings is "text-embedding-ada-002".
|
|
You need the correct deployment name for this model in your Azure account.
|
|
|
|
When running OpenDevin in Docker, set the following environment variables using `-e`:
|
|
|
|
```
|
|
LLM_EMBEDDING_MODEL="azureopenai"
|
|
LLM_EMBEDDING_DEPLOYMENT_NAME = "<your-embedding-deployment-name>" # e.g. "TextEmbedding...<etc>"
|
|
LLM_API_VERSION = "<api-version>" # e.g. "2024-02-15-preview"
|
|
```
|