mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-08 22:08:03 -05:00
19 lines
490 B
Go
19 lines
490 B
Go
package ai
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/danielmiessler/fabric/internal/chat"
|
|
"github.com/danielmiessler/fabric/internal/plugins"
|
|
|
|
"github.com/danielmiessler/fabric/internal/domain"
|
|
)
|
|
|
|
type Vendor interface {
|
|
plugins.Plugin
|
|
ListModels() ([]string, error)
|
|
SendStream([]*chat.ChatCompletionMessage, *domain.ChatOptions, chan domain.StreamUpdate) error
|
|
Send(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions) (string, error)
|
|
NeedsRawMode(modelName string) bool
|
|
}
|