service

package
v0.0.0-...-0e0034f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Joy *chatBotService

Robot Joy is For ChatGPT

Functions

func InitService

func InitService(config *rcconfig.RCConfig) error

func NewChatBotService

func NewChatBotService(config *rcconfig.RCConfig) (abs *chatBotService)

Types

type ArtBotService

type ArtBotService struct {
	// contains filtered or unexported fields
}
var Michelle *ArtBotService

Robot Michelle for Stable Diffusion

func NewArtBotService

func NewArtBotService(config *rcconfig.RCConfig) (abs *ArtBotService)

func (*ArtBotService) ChatImage2Image

func (srv *ArtBotService) ChatImage2Image(ctx context.Context, req *sd.ParaImage2Image) (job *model.Job, err error)

func (*ArtBotService) ChatTxt2Image

func (srv *ArtBotService) ChatTxt2Image(ctx context.Context, req *sd.ParaText2Image) (job *model.Job, err error)

func (*ArtBotService) DetectControlNet

func (*ArtBotService) GetControlNetControlTypesList

func (srv *ArtBotService) GetControlNetControlTypesList(ctx context.Context) (res *controlNet.ArtBotControlNetControlTypeResponse, err error)

func (*ArtBotService) GetControlNetModelList

func (srv *ArtBotService) GetControlNetModelList(ctx context.Context) (res *controlNet.ArtBotControlNetModelResponse, err error)

func (*ArtBotService) GetControlNetModuleList

func (srv *ArtBotService) GetControlNetModuleList(ctx context.Context) (res *controlNet.ArtBotControlNetModuleResponse, err error)

func (*ArtBotService) GetControlNetSettings

func (srv *ArtBotService) GetControlNetSettings(ctx context.Context) (res *controlNet.ArtBotControlNetSettingsResponse, err error)

func (*ArtBotService) GetControlNetVersion

func (srv *ArtBotService) GetControlNetVersion(ctx context.Context) (res *controlNet.ArtBotControlNetVersionResponse, err error)

func (*ArtBotService) GetLoras

func (srv *ArtBotService) GetLoras(ctx context.Context) (res *model2.ArtBotLorasResponse, err error)

func (*ArtBotService) GetModels

func (srv *ArtBotService) GetModels(ctx context.Context) (res *model2.ArtBotModelsResponse, err error)

func (*ArtBotService) GetOptions

func (srv *ArtBotService) GetOptions(ctx context.Context) (res *model2.OptionsResponse, err error)

func (*ArtBotService) GetSamplers

func (srv *ArtBotService) GetSamplers(ctx context.Context) (res *model2.ArtBotSamplersResponse, err error)

func (*ArtBotService) Image2Image

func (srv *ArtBotService) Image2Image(ctx context.Context, req *model2.Image2ImageRequest) (res *model2.Image2ImageResponse, err error)

func (*ArtBotService) IsAwaken

func (srv *ArtBotService) IsAwaken(ctx context.Context) error

func (*ArtBotService) Launch

func (srv *ArtBotService) Launch(ctx context.Context) error

func (*ArtBotService) Progress

func (srv *ArtBotService) Progress(ctx context.Context) (res *model2.ProgressResponse, err error)

func (*ArtBotService) RefreshLoras

func (srv *ArtBotService) RefreshLoras(ctx context.Context) (err error)

func (*ArtBotService) SetOptions

func (srv *ArtBotService) SetOptions(ctx context.Context, options *model2.OptionsRequest) (err error)

func (*ArtBotService) Txt2Image

func (srv *ArtBotService) Txt2Image(ctx context.Context, req *model2.Text2ImageRequest) (res *model2.Image2ImageResponse, err error)

func (*ArtBotService) WebhookText

func (srv *ArtBotService) WebhookText(ctx context.Context, notify *request2.ParaQueueNotify)

type TrainerBotService

type TrainerBotService struct {
	// contains filtered or unexported fields
}
var Michael *TrainerBotService

Bot Trainer Michael

func NewTrainerBotService

func NewTrainerBotService(config *rcconfig.RCConfig) (bts *TrainerBotService)

func (*TrainerBotService) ConvertExcelToSelfCognitionData

func (srv *TrainerBotService) ConvertExcelToSelfCognitionData(ctx context.Context, excelFileData *multipart.File, savePath string) (err error)

Jump to

Keyboard shortcuts

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