llmtest

package
v0.0.0-...-4101898 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"llm-test",
	fx.Provide(fx.Annotate(newMockService, fx.As(new(llm.Chater)))),
)

Functions

This section is empty.

Types

type MockService

type MockService struct {
	ChatFn func(systemContent, userContent string) (string, error)
}

func (*MockService) Chat

func (s *MockService) Chat(ctx context.Context, systemContent, userContent string) (string, error)

Jump to

Keyboard shortcuts

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