Data Source: oci_generative_ai_models
This data source provides the list of Models in Oracle Cloud Infrastructure Generative AI service.
Lists the models in a specific compartment. Includes pretrained base models and fine-tuned custom models.
Example Usage
data "oci_generative_ai_models" "test_models" {
#Required
compartment_id = var.compartment_id
#Optional
capability = var.model_capability
display_name = var.model_display_name
id = var.model_id
state = var.model_state
vendor = var.model_vendor
}
Argument Reference
The following arguments are supported:
capability
- (Optional) A filter to return only resources their capability matches the given capability.compartment_id
- (Required) The OCID of the compartment in which to list resources.display_name
- (Optional) A filter to return only resources that match the given display name exactly.id
- (Optional) The ID of the model.state
- (Optional) A filter to return only resources their lifecycleState matches the given lifecycleState.vendor
- (Optional) A filter to return only resources that match the entire vendor given.
Attributes Reference
The following attributes are exported:
model_collection
- The list of model_collection.
Model Reference
The following attributes are exported:
capabilities
- Describes what this model can be used for.compartment_id
- The compartment OCID for fine-tuned models. For pretrained models, this value is null.defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:{"Operations.CostCenter": "42"}
id
- An ID that uniquely identifies a pretrained or fine-tuned model.state
- The lifecycle state of the model.time_deprecated
- Corresponds to the time when the custom model and its associated foundation model will be deprecated.type
- The model type indicating whether this is a pretrained/base model or a custom/fine-tuned model.version
- The version of the model.