mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-13 23:45:08 -05:00
## CHANGES - Add NeedsRawMode to Vendor interface - Implement NeedsRawMode in all AI clients - Return false for all implementations - Support model-specific raw mode detection - Enable future raw mode requirements
19 lines
463 B
Go
19 lines
463 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)
|
|
NeedsRawMode(modelName string) bool
|
|
}
|