Skip to content

failed to create model: Replicate API error: Unknown error: json: cannot unmarshal object into Go struct field APIError.detail of type string #41

@shripadk

Description

@shripadk

I get the following error when trying to create a model via the CLI tool. Any idea what could be the issue here? I have set the API Key correctly and replicate model show <owner-redacted>/<name> works:

» replicate model create <owner-redacted>/<name-redacted>  --private --hardware gpu-a40-large
Error: failed to create model: failed to create model: Replicate API error: Unknown error: json: cannot unmarshal object into Go struct field APIError.detail of type string
Usage:
  replicate model create <owner>/<name> [flags]

Flags:
      --cover-image-url string   URL of the cover image
      --description string       Description of the model
      --github-url string        URL of the GitHub repository
      --hardware string          SKU of the hardware to run the model
  -h, --help                     help for create
      --json                     Emit JSON
      --license-url string       URL of the license
      --paper-url string         URL of the paper
      --private                  Make the new model private
      --public                   Make the new model public
      --web                      View on web

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions