GoodMemGoodMem
ReferenceCLILLM

LLM Update

LLM Update CLI command reference

goodmem llm update

Update an LLM

Synopsis

Update an existing LLM's configuration.

goodmem llm update <llm-id> [flags]

Examples

  # Update LLM display name and description
  goodmem llm update abc123... \
    --display-name "Updated GPT-4" \
    --description "Updated description"

  # Update capabilities
  goodmem llm update abc123... \
    --supports-chat \
    --no-supports-completion \
    --supports-function-calling

  # Update sampling parameters
  goodmem llm update abc123... \
    --sampling-max-tokens 2048 \
    --sampling-temperature 0.5

  # Replace supported modalities
  goodmem llm update abc123... \
    --modalities TEXT,IMAGE

  # Rotate inline API key credentials
  goodmem llm update abc123... \
    --cred-api-key "sk-new"

  # Replace all labels
  goodmem llm update abc123... \
    --replace-labels \
    --label env=production \
    --label version=2.0

  # Merge labels (add or update specific labels)
  goodmem llm update abc123... \
    --merge-labels \
    --label updated=true

Options

      --client-config string                           New provider-specific client configuration as JSON string
      --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)
      --cred-gcp[=true|false]                          Use Google Application Default Credentials
      --cred-gcp-quota string                          Quota project for Google ADC requests
      --cred-gcp-scope strings                         Additional Google ADC OAuth scope (can be specified multiple times)
      --dashscope-api-dialect string                   New DashScope API dialect for DashScope resources only (LLM_NATIVE_TEXT, LLM_NATIVE_MULTIMODAL, or OPENAI_COMPATIBLE)
      --description string                             New description for the LLM
      --display-name string                            New display name for the LLM
  -h, --help[=true|false]                              help for update
  -l, --label strings                                  Labels in key=value format (can be specified multiple times)
      --label-strategy string                          Label update strategy: 'replace' to overwrite all existing labels, 'merge' to add to existing labels (default "replace")
      --max-context-length int32                       New maximum context length in tokens
      --modalities strings                             New supported modalities (TEXT, IMAGE, AUDIO, VIDEO); non-empty replaces the stored set
      --monitoring-endpoint string                     New monitoring endpoint for the LLM
      --no-supports-chat[=true|false]                  LLM does not support chat/conversation mode
      --no-supports-completion[=true|false]            LLM does not support text completion mode
      --no-supports-function-calling[=true|false]      LLM does not support function calling
      --no-supports-sampling-parameters[=true|false]   LLM does not support sampling parameters
      --no-supports-streaming[=true|false]             LLM does not support streaming responses
      --no-supports-system-messages[=true|false]       LLM does not support system messages
      --sampling-frequency-penalty float32             Frequency penalty (provider-specific)
      --sampling-max-tokens int32                      Maximum number of tokens to generate
      --sampling-presence-penalty float32              Presence penalty (provider-specific)
      --sampling-stop-sequences strings                Stop sequences (can be specified multiple times)
      --sampling-temperature float32                   Sampling temperature (provider-specific; zero is allowed)
      --sampling-top-k int32                           Top-k sampling parameter
      --sampling-top-p float32                         Top-p sampling parameter (0.0-1.0)
      --supports-chat[=true|false]                     LLM supports chat/conversation mode
      --supports-completion[=true|false]               LLM supports text completion mode
      --supports-function-calling[=true|false]         LLM supports function calling
      --supports-sampling-parameters[=true|false]      LLM supports sampling parameters (temperature, top_p, etc.)
      --supports-streaming[=true|false]                LLM supports streaming responses
      --supports-system-messages[=true|false]          LLM supports system messages
      --version string                                 New version for the LLM

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