ai

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficientCredit = credit.ErrInsufficientCredit

Functions

func InitCaseExamineHandler added in v0.2.1

func InitCaseExamineHandler(
	common []handler.Builder,

	platform handler.Handler) *biz.CompositionHandler

func InitCommonHandlers

func InitCommonHandlers(log *log.HandlerBuilder,
	cfg *config.HandlerBuilder,
	credit *credit.HandlerBuilder,
	record *record.HandlerBuilder) []handler.Builder

func InitHandlerFacade

func InitHandlerFacade(common []handler.Builder,
	zhipu *zhipu.Handler) *biz.FacadeHandler

func InitLLMCreditLogDAO

func InitLLMCreditLogDAO(db *egorm.Component) dao.LLMCreditDAO

func InitQuestionExamineHandler

func InitQuestionExamineHandler(
	common []handler.Builder,

	platform handler.Handler) *biz.CompositionHandler

func InitTableOnce

func InitTableOnce(db *gorm.DB)

func InitZhipu

func InitZhipu() *zhipu.Handler

Types

type LLMRequest

type LLMRequest = domain.LLMRequest

type LLMResponse

type LLMResponse = domain.LLMResponse

type LLMService

type LLMService = llm.Service

type Module

type Module struct {
	Svc LLMService
}

func InitModule

func InitModule(db *gorm.DB, creditSvc *credit.Module) (*Module, error)

Directories

Path Synopsis
internal
service/llm/handler/mocks
Code generated by MockGen.
Code generated by MockGen.
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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