mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-12 06:55:08 -05:00
## CHANGES - Move domain types from common to domain package - Move utility functions from common to util package - Update all import statements across codebase - Reorganize OAuth storage functionality into util package - Move file management functions to domain package - Update test files to use new package structure - Maintain backward compatibility for existing functionality
19 lines
477 B
Go
19 lines
477 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 string) error
|
|
Send(context.Context, []*chat.ChatCompletionMessage, *domain.ChatOptions) (string, error)
|
|
NeedsRawMode(modelName string) bool
|
|
}
|