discovery

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderHuggingFace = "huggingface"
	ProviderCivitAI     = "civitai"
	ProviderModelScope  = "modelscope"
	ProviderAll         = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Provider string
	Query    string
	Limit    int
}

type Result

type Result struct {
	Index       int      `json:"index"`
	Provider    string   `json:"provider"`
	ModelID     string   `json:"model_id"`
	Name        string   `json:"name"`
	Description string   `json:"description,omitempty"`
	Pipeline    string   `json:"pipeline,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	Downloads   int64    `json:"downloads,omitempty"`
	Likes       int64    `json:"likes,omitempty"`
	VersionID   string   `json:"version_id,omitempty"`
	FilePath    string   `json:"file_path,omitempty"`
	FileName    string   `json:"file_name,omitempty"`
	FileType    string   `json:"file_type,omitempty"`
	Size        int64    `json:"size,omitempty"`
	URI         string   `json:"uri"`
}
func Search(ctx context.Context, opts Options) ([]Result, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL