mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-27 01:22:18 +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>
1.8 KiB
1.8 KiB
| page_title | subcategory | description |
|---|---|---|
| litellm_model Data Source - terraform-provider-litellm | Retrieves information about a model deployment on the LiteLLM proxy. |
litellm_model (Data Source)
Retrieves information about a single model deployment via /v1/model/info. Sensitive litellm_params fields (API keys and other credentials) are never exposed; only safe routing metadata is exported.
Example Usage
data "litellm_model" "gpt4o" {
model_id = "0e5x74fab24a7a5245d2ced3536dd8f5"
}
output "gpt4o_provider" {
value = data.litellm_model.gpt4o.custom_llm_provider
}
Argument Reference
The following arguments are supported:
model_id- (Required) LiteLLM model ID (thex-litellm-model-idresponse header value).
Attributes Reference
In addition to all arguments above, the following attributes are exported:
model_name- Public model name used for routing.model- The underlyinglitellm_paramsmodel, e.g.openai/gpt-4o.custom_llm_provider- Provider for the model.model_api_base- API base URL, if configured.api_version- API version, if configured.tpm- Tokens per minute limit for the deployment.rpm- Requests per minute limit for the deployment.base_model- Base model used for pricing and capabilities.tier- Model tier (freeorpaid).mode- Model mode, e.g.chatorembedding.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 (as opposed to config).
Security Note
Credential material inside litellm_params (such as api_key, aws_secret_access_key, and vertex_credentials) is never exported by this data source.