Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LLM ¶
type LLM interface {
CreateChatCompletion(context.Context, string, []*db.Message) (string, error)
CreateChatCompletionStream(context.Context, string, []*db.Message) (io.ReadCloser, error)
SetAPIKey(string) error
}
TODO: fix coupling with db message
type Mock ¶
type Mock struct{}
func (*Mock) CreateChatCompletion ¶
func (*Mock) CreateChatCompletionStream ¶
Click to show internal directories.
Click to hide internal directories.