Class BaseParameters

    • Field Detail

      • modelId

        protected final String modelId
        Model ID to use for the inference (required).
      • alias

        protected final String alias
        Optional alias for the file.
      • webhookIds

        protected final String[] webhookIds
        Webhook IDs to call after all processing is finished. If empty, no webhooks will be used.
    • Constructor Detail

      • BaseParameters

        public BaseParameters​(String modelId,
                              String alias,
                              String[] webhookIds)
        Creates a new BaseParameters instance.
        Parameters:
        modelId - Model ID to use for the inference (required).
        alias - Optional alias for the file.
        webhookIds - Webhook IDs to call after all processing is finished. If empty, no webhooks will be used.
    • Method Detail

      • buildHttpBody

        public org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder buildHttpBody​(org.apache.hc.client5.http.entity.mime.MultipartEntityBuilder builder)
      • getModelId

        public String getModelId()
        Model ID to use for the inference (required).
      • getAlias

        public String getAlias()
        Optional alias for the file.
      • getWebhookIds

        public String[] getWebhookIds()
        Webhook IDs to call after all processing is finished. If empty, no webhooks will be used.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object