Documentation ¶
Index ¶
- func CoerceTypes(inputs map[string]string, schema *openapi3.Schema) (map[string]interface{}, error)
- func DownloadPrediction(ctx context.Context, prediction replicate.Prediction, dir string) error
- func GetPipedArgs() (string, error)
- func GetSchemas(version replicate.ModelVersion) (input *openapi3.Schema, output *openapi3.Schema, err error)
- func IsTTY() bool
- func ParseInputs(ctx context.Context, r8 *replicate.Client, args []string, stdin string, ...) (map[string]string, error)
- func SortedKeys(properties openapi3.Schemas) []string
- func StatusSymbol(status replicate.Status) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CoerceTypes ¶
CoerceTypes converts a map of string inputs to the types specified in the schema
func DownloadPrediction ¶ added in v0.2.0
func GetPipedArgs ¶
func GetSchemas ¶
func GetSchemas(version replicate.ModelVersion) (input *openapi3.Schema, output *openapi3.Schema, err error)
GetSchemas returns the input and output schemas for a model version
func ParseInputs ¶
func SortedKeys ¶
SortedKeys returns the keys of the properties in the order they should be displayed
func StatusSymbol ¶
func StatusSymbol(status replicate.Status) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.