Перейти к содержимому

Деплоймент модели – выделенный доступ к модели у пользователя, имеющий собственную конфигурацию

terraform
resource "mws_gpt_deployment" "deployment" {
deployment_name = var.deployment_name
model = "glm-4.6-357b"
is_active = true
metadata = {
display_name = "Example GPT Deployment"
description = "An example GPT model deployment"
}
}
variable "deployment_name" {
type = string
default = "my-gpt-deployment"
description = "GPT deployment name"
}
  • deployment_name (String) Параметр пути для имени деплоймента, уникальный в рамках проекта.
  • is_active (Boolean) Флаг, устанавливающий активность деплоймента.
  • kind (String) Указание на тип ресурса.
  • metadata (Attributes) (see below for nested schema)
  • model (String) Ссылка на типизированный референс базовой модели.
  • project (String) Путь к проекту.
  • timeouts (Attributes) (see below for nested schema)
  • id (String) ID ресурса.
  • status (Attributes) Текущее наблюдаемое состояние деплоймента. (see below for nested schema)

Optional:

  • description (String) Описание ресурса.
  • display_name (String) Отображаемое имя. Необязательное поле, можно свободно задавать и изменять для удобства организации ресурсов.

Read-Only:

  • create_time (String) Дата создания объекта.
  • delete_time (String) Время запроса на удаление ресурса (не фактическое время удаления).
  • id (String) Ссылка на типизированный референс.
  • purge_time (String)
  • usages (Attributes List) Связи с другими ресурсами. В зависимости от типа связи операции над ресурсом могут быть ограничены. (see below for nested schema)

Read-Only:

  • name (String) Имя связи. Требуется для модификации коллекции.
  • resource (String) Ссылка на ресурс.
  • usage_type (String) Тип связи. Помимо стандартных own и use могут быть добавлены специализированные типы для конкретных сервисов.

Optional:

  • create (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).
  • delete (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
  • update (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as ”30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).

Read-Only:

Read-Only:

  • chat_completion (Boolean, Deprecated)
  • embedding (Boolean, Deprecated)
  • reasoning (Boolean)
  • tool_calling (Boolean)

Read-Only:

  • inference (String)

Read-Only:

  • audio (Boolean)
  • file (Boolean)
  • image (Boolean)
  • text (Boolean)

Read-Only:

  • audio (Boolean)
  • text (Boolean)
  • vision (Boolean)

Read-Only:

  • audio (Boolean)
  • embedding (Boolean)
  • reranking (Boolean)
  • text (Boolean)
  • transcription (Boolean)

Read-Only:

  • message (String) Описание статуса.
  • state (String) Состояние ресурса.