openai

package
v0.0.0-...-c20d9b3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOpenAIUsecase

func NewOpenAIUsecase(
	cfg *config.Config,
	repo domain.OpenAIRepo,
	modelRepo domain.ModelRepo,
	logger *slog.Logger,
	redis *redis.Client,
) domain.OpenAIUsecase

Types

type OpenAIUsecase

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

func (*OpenAIUsecase) GetConfig

func (u *OpenAIUsecase) GetConfig(ctx context.Context, req *domain.ConfigReq) (*domain.ConfigResp, error)

func (*OpenAIUsecase) ModelList

func (u *OpenAIUsecase) ModelList(ctx context.Context) (*domain.ModelListResp, error)

Jump to

Keyboard shortcuts

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