Spaces:
Configuration error
Configuration error
|
Download docs/modules/usage/llms/azure-llms.md from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/modules/usage/llms/azure-llms.md
- Command line
-
hf download hf://spaces/flyingdarkdev/README/docs/modules/usage/llms/azure-llms.md
-
curl -L -o azure-llms.md https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/docs/modules/usage/llms/azure-llms.md
1.25 kB
Azure
OpenHands uses LiteLLM to make calls to Azure's chat models. You can find their documentation on using Azure as a provider here.
Azure OpenAI Configuration
When running OpenHands, you'll need to set the following environment variable using -e in the
docker run command:
LLM_API_VERSION="<api-version>" # e.g. "2023-05-15"
Example:
docker run -it --pull=always \
-e LLM_API_VERSION="2023-05-15"
...
Then in the OpenHands UI Settings:
:::note You will need your ChatGPT deployment name which can be found on the deployments page in Azure. This is referenced as <deployment-name> below. :::
- Enable
Advancedoptions - Set the following:
Custom Modelto azure/<deployment-name>Base URLto your Azure API Base URL (e.g.https://example-endpoint.openai.azure.com)API Keyto your Azure API key
Azure OpenAI Configuration
When running OpenHands, set the following environment variable using -e in the
docker run command:
LLM_API_VERSION="<api-version>" # e.g. "2024-02-15-preview"