mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-08 13:00:52 +00:00
# What does this PR do? inference adapters can now configure `refresh_models: bool` to control periodic model listing from their providers BREAKING CHANGE: together inference adapter default changed. previously always refreshed, now follows config. addresses "models: refresh" on #3517 ## Test Plan ci w/ new tests
25 lines
821 B
Text
25 lines
821 B
Text
---
|
|
description: "Anthropic inference provider for accessing Claude models and Anthropic's AI services."
|
|
sidebar_label: Remote - Anthropic
|
|
title: remote::anthropic
|
|
---
|
|
|
|
# remote::anthropic
|
|
|
|
## Description
|
|
|
|
Anthropic inference provider for accessing Claude models and Anthropic's AI services.
|
|
|
|
## 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` | `str \| None` | No | | API key for Anthropic models |
|
|
|
|
## Sample Configuration
|
|
|
|
```yaml
|
|
api_key: ${env.ANTHROPIC_API_KEY:=}
|
|
```
|