> ## Documentation Index
> Fetch the complete documentation index at: https://hyperlocalise.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Azure OpenAI

> Cấu hình Azure OpenAI làm nhà cung cấp LLM cho việc tạo bản dịch.

## Giá trị của Provider

Sử dụng `azure_openai` trong `llm.profiles.<name>.provider`.

## Hồ sơ ví dụ

```json theme={null}
{
  "llm": {
    "profiles": {
      "default": {
        "provider": "azure_openai",
        "model": "gpt-4.1-mini",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}
```

## Các biến môi trường bắt buộc

<CodeGroup>
  ```bash Export theme={null}
  export AZURE_OPENAI_BASE_URL="https://<resource>.openai.azure.com/openai/v1"
  export AZURE_OPENAI_API_KEY="your-azure-openai-api-key"
  ```

  ```bash .env.local theme={null}
  AZURE_OPENAI_BASE_URL="https://<resource>.openai.azure.com/openai/v1"
  AZURE_OPENAI_API_KEY="your-azure-openai-api-key"
  ```
</CodeGroup>
