mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-09 08:18:12 +00:00
* feat(terraform): add display_name to litellm_model resource and model data sources
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(terraform): persist display_name on update and read /model/info data envelope
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* chore(terraform): drop PATCH /model/{model_id}/update from endpoint audit allowlist
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* fix(terraform): surface external display_name removal as drift on refresh
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* ci(terraform): rerun after uv download timeout
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: yassin <yassin@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
45 lines
1.5 KiB
Markdown
45 lines
1.5 KiB
Markdown
---
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
page_title: "litellm_models Data Source - terraform-provider-litellm"
|
|
subcategory: ""
|
|
description: |-
|
|
Lists model deployments on the LiteLLM proxy.
|
|
---
|
|
|
|
# litellm_models (Data Source)
|
|
|
|
Lists all model deployments via `/v1/model/info`. Sensitive `litellm_params` fields (API keys and other credentials) are never exposed.
|
|
|
|
## Example Usage
|
|
|
|
```terraform
|
|
data "litellm_models" "all" {}
|
|
|
|
output "model_names" {
|
|
value = [for m in data.litellm_models.all.models : m.model_name]
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
The following arguments are supported:
|
|
|
|
* `team_id` - (Optional) Filter models to those accessible by this team.
|
|
|
|
## Attributes Reference
|
|
|
|
In addition to all arguments above, the following attributes are exported:
|
|
|
|
* `ids` - LiteLLM model IDs of the returned models.
|
|
* `models` - List of model objects. Each entry exports:
|
|
* `id` - LiteLLM model ID.
|
|
* `model_name` - Public model name used for routing.
|
|
* `model` - The underlying `litellm_params` model.
|
|
* `custom_llm_provider` - Provider for the model.
|
|
* `model_api_base` - API base URL, if configured.
|
|
* `base_model` - Base model used for pricing and capabilities.
|
|
* `tier` - Model tier (`free` or `paid`).
|
|
* `mode` - Model mode, e.g. `chat` or `embedding`.
|
|
* `team_id` - Team the deployment is scoped to, if any.
|
|
* `display_name` - Human-readable name returned by `/v1/models`, if configured.
|
|
* `db_model` - Whether the deployment is stored in the database.
|