mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-14 07:55:03 -05:00
17 lines
425 B
Go
17 lines
425 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)
|
|
}
|