fabric/vendors/vendor.go

20 lines
414 B
Go
Raw Normal View History

package vendors
2024-08-22 21:20:27 +00:00
import (
"bytes"
"context"
2024-08-22 21:20:27 +00:00
"github.com/danielmiessler/fabric/common"
)
type Vendor interface {
GetName() string
IsConfigured() bool
Configure() error
ListModels() ([]string, error)
SendStream([]*common.Message, *common.ChatOptions, chan string) error
Send(context.Context, []*common.Message, *common.ChatOptions) (string, error)
Setup() error
2024-08-22 21:20:27 +00:00
SetupFillEnvFileContent(*bytes.Buffer)
}