mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-08 22:08:03 -05:00
18 lines
426 B
Go
18 lines
426 B
Go
package ai
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/danielmiessler/fabric/plugins"
|
|
goopenai "github.com/sashabaranov/go-openai"
|
|
|
|
"github.com/danielmiessler/fabric/common"
|
|
)
|
|
|
|
type Vendor interface {
|
|
plugins.Plugin
|
|
ListModels() ([]string, error)
|
|
SendStream([]*goopenai.ChatCompletionMessage, *common.ChatOptions, chan string) error
|
|
Send(context.Context, []*goopenai.ChatCompletionMessage, *common.ChatOptions) (string, error)
|
|
}
|