app

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AICCFinetuneConfig

type AICCFinetuneConfig = domain.AICCFinetuneConfig

type AICCFinetuneCreateCmd

type AICCFinetuneCreateCmd struct {
	User  types.Account
	Model domain.ModelName
	Task  domain.FinetuneTask

	domain.AICCFinetuneConfig
}

func (*AICCFinetuneCreateCmd) Validate

func (cmd *AICCFinetuneCreateCmd) Validate() error

type AICCFinetuneDTO

type AICCFinetuneDTO struct {
	Id string `json:"id"`

	Name string `json:"name"`
	Desc string `json:"desc"`

	IsDone    bool   `json:"is_done"`
	Error     string `json:"error"`
	Status    string `json:"status"`
	Duration  int    `json:"duration"`
	CreatedAt string `json:"created_at"`

	LogPreviewURL string `json:"-"`
}

type AICCFinetuneIndex

type AICCFinetuneIndex = domain.AICCFinetuneIndex

type AICCFinetuneInternalService

type AICCFinetuneInternalService interface {
	UpdateJobDetails(*AICCFinetuneIndex, *JobDetail) error
}

func NewAICCFinetuneInternalService

func NewAICCFinetuneInternalService(
	repo repository.AICCFinetune,
) AICCFinetuneInternalService

type AICCFinetuneService

type AICCFinetuneService interface {
	Create(*AICCFinetuneCreateCmd) (string, error)
	UpdateJobDetail(*AICCFinetuneIndex, *JobDetail) error
	List(user types.Account, model domain.ModelName) ([]AICCFinetuneSummaryDTO, error)
	Get(*AICCFinetuneIndex) (AICCFinetuneDTO, string, error)
	Delete(*AICCFinetuneIndex) error
	Terminate(*AICCFinetuneIndex) error
	GetLogDownloadURL(*AICCFinetuneIndex) (string, string, error)
	GetOutputDownloadURL(*AICCFinetuneIndex) (string, string, error)
	CreateAICCFinetuneJob(*AICCFinetuneIndex, string, bool) (bool, error)

	UploadData(*UploadDataCmd) (UploadDataDTO, error)
}

type AICCFinetuneSummaryDTO

type AICCFinetuneSummaryDTO struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Desc      string `json:"desc"`
	Error     string `json:"error"`
	Status    string `json:"status"`
	CreatedAt string `json:"created_at"`
	IsDone    bool   `json:"is_done"`
	Duration  int    `json:"duration"`
	Task      string `json:"task"`
}

type ComputeDTO

type ComputeDTO struct {
	ImageUrl string `json:"image_url"`
}

type JobDetail

type JobDetail = domain.JobDetail

type UploadDataCmd

type UploadDataCmd struct {
	FileName string
	Data     io.Reader
	User     types.Account
	Model    domain.ModelName
	Task     domain.FinetuneTask
}

type UploadDataDTO

type UploadDataDTO struct {
	UploadAt int64  `json:"upload_at"`
	FileName string `json:"file_name"`
	Status   string `json:"status"`
}

Jump to

Keyboard shortcuts

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