GoodMemGoodMem
ReferenceCLIDecision Models

Decision Model Create

Decision Model Create CLI command reference

goodmem decision-model create

Register a decision model

Synopsis

Save the connection settings for a Jev, Laya, or Clef model in GoodMem.

Use --configuration to set timeout_millis, max_response_bytes, or image_preview (Jev only). This replaces all configuration settings; '{}' restores the defaults.

Supply the provider's API key with --cred-api-key, --cred-api-key-file, or the GOODMEM_CRED_API_KEY environment variable.

Prints the saved settings as JSON. The decisionModelID field contains the UUID that you can use with get, update, delete, ping, and decide.

goodmem decision-model create [flags]

Examples

  goodmem decision-model create --display-name classifier --provider laya \
    --endpoint-url http://localhost:8000 --model laya
  goodmem decision-model create --display-name classifier --provider jev \
    --endpoint-url https://api.typesafe.ai --model jev-latest --cred-api-key-file ./provider-key

Options

      --api-path string                    Path appended to the base URL (default /v1/systemone for Jev/Laya; required for Clef)
      --configuration string               Provider settings as a JSON object; replaces all settings ('{}' restores defaults)
      --cred-api-key string                API key for provider endpoint (use "-" to read from piped stdin)
      --cred-api-key-file string           Read API key from file (file should be mode 0600)
      --cred-api-key-prompt[=true|false]   Prompt for API key interactively (requires TTY, input hidden)
      --description string                 Description; use --description='' to clear it on update
  -n, --display-name string                Display name
      --endpoint-url string                Provider's base URL, starting with http:// or https://
  -h, --help[=true|false]                  help for create
      --id string                          UUID to assign to the decision model; generated if omitted
  -l, --label strings                      Label as key=value; repeat for multiple labels
      --model string                       Model name or identifier expected by the provider
      --monitoring-endpoint string         URL for health checks or metrics; use --monitoring-endpoint='' to clear it on update
  -o, --owner string                       UUID of the owner; defaults to the user or service authenticated by your API key
      --provider string                    Provider: jev, laya, clef
      --version string                     Version label for your records; use --version='' to clear it on update

Options inherited from parent commands

      --api-key string   API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
      --server string    GoodMem server URL (gRPC API; default ports: https=443, http=80)

SEE ALSO

On this page