mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
# What does this PR do? Completes #3732 by removing runtime URL transformations and requiring users to provide full URLs in configuration. All providers now use 'base_url' consistently and respect the exact URL provided without appending paths like /v1 or /openai/v1 at runtime. BREAKING CHANGE: Users must update configs to include full URL paths (e.g., http://localhost:11434/v1 instead of http://localhost:11434). Closes #3732 ## Test Plan Existing tests should pass even with the URL changes, due to default URLs being altered. Add unit test to enforce URL standardization across remote inference providers (verifies all use 'base_url' field with HttpUrl | None type) Signed-off-by: Charlie Doern <cdoern@redhat.com>
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
---
|
|
description: |
|
|
Azure OpenAI inference provider for accessing GPT models and other Azure services.
|
|
Provider documentation
|
|
https://learn.microsoft.com/en-us/azure/ai-foundry/openai/overview
|
|
sidebar_label: Remote - Azure
|
|
title: remote::azure
|
|
---
|
|
|
|
# remote::azure
|
|
|
|
## Description
|
|
|
|
|
|
Azure OpenAI inference provider for accessing GPT models and other Azure services.
|
|
Provider documentation
|
|
https://learn.microsoft.com/en-us/azure/ai-foundry/openai/overview
|
|
|
|
|
|
## Configuration
|
|
|
|
| Field | Type | Required | Default | Description |
|
|
|-------|------|----------|---------|-------------|
|
|
| `allowed_models` | `list[str] \| None` | No | | List of models that should be registered with the model registry. If None, all models are allowed. |
|
|
| `refresh_models` | `bool` | No | False | Whether to refresh models periodically from the provider |
|
|
| `api_key` | `SecretStr \| None` | No | | Authentication credential for the provider |
|
|
| `base_url` | `HttpUrl \| None` | No | | Azure API base for Azure (e.g., https://your-resource-name.openai.azure.com/openai/v1) |
|
|
| `api_version` | `str \| None` | No | | Azure API version for Azure (e.g., 2024-12-01-preview) |
|
|
| `api_type` | `str \| None` | No | azure | Azure API type for Azure (e.g., azure) |
|
|
|
|
## Sample Configuration
|
|
|
|
```yaml
|
|
api_key: ${env.AZURE_API_KEY:=}
|
|
base_url: ${env.AZURE_API_BASE:=}
|
|
api_version: ${env.AZURE_API_VERSION:=}
|
|
api_type: ${env.AZURE_API_TYPE:=}
|
|
```
|