mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-12 01:10:44 +00:00
15 lines
362 B
Go
15 lines
362 B
Go
|
package vendors
|
||
|
|
||
|
import "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([]*common.Message, *common.ChatOptions) (string, error)
|
||
|
GetSettings() common.Settings
|
||
|
Setup() error
|
||
|
}
|