mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-11 05:38:38 +00:00
# What does this PR do? use SecretStr for OpenAIMixin providers - RemoteInferenceProviderConfig now has auth_credential: SecretStr - the default alias is api_key (most common name) - some providers override to use api_token (RunPod, vLLM, Databricks) - some providers exclude it (Ollama, TGI, Vertex AI) addresses #3517 ## Test Plan ci w/ new tests
27 lines
995 B
Text
27 lines
995 B
Text
---
|
|
description: "Passthrough inference provider for connecting to any external inference service not directly supported."
|
|
sidebar_label: Remote - Passthrough
|
|
title: remote::passthrough
|
|
---
|
|
|
|
# remote::passthrough
|
|
|
|
## Description
|
|
|
|
Passthrough inference provider for connecting to any external inference service not directly supported.
|
|
|
|
## 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` | `<class 'bool'>` | No | False | Whether to refresh models periodically from the provider |
|
|
| `api_key` | `pydantic.types.SecretStr \| None` | No | | API Key for the passthrouth endpoint |
|
|
| `url` | `<class 'str'>` | No | | The URL for the passthrough endpoint |
|
|
|
|
## Sample Configuration
|
|
|
|
```yaml
|
|
url: ${env.PASSTHROUGH_URL}
|
|
api_key: ${env.PASSTHROUGH_API_KEY}
|
|
```
|