usecase

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type ModelKit added in v2.2.1

type ModelKit struct {
	// contains filtered or unexported fields
}

func NewModelKit added in v2.2.1

func NewModelKit(logger *slog.Logger) *ModelKit

NewModelKit 创建一个新的ModelKit实例

func (*ModelKit) CheckModel added in v2.2.1

func (m *ModelKit) CheckModel(ctx context.Context, req *domain.CheckModelReq) (*domain.CheckModelResp, error)

func (*ModelKit) GetChatModel added in v2.2.1

func (m *ModelKit) GetChatModel(ctx context.Context, model *domain.ModelMetadata) (model.BaseChatModel, error)

func (*ModelKit) ModelList added in v2.2.1

func (m *ModelKit) ModelList(ctx context.Context, req *domain.ModelListReq) (*domain.ModelListResp, error)

type OpenAI

type OpenAI struct{}

func (*OpenAI) ListModel

func (o *OpenAI) ListModel(subType string, provider string) ([]domain.ModelMetadata, error)

Jump to

Keyboard shortcuts

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