Documentation
¶
Index ¶
- Constants
- type Client
- func (o *Client) ListModels() (ret []string, err error)
- func (o *Client) NeedsRawMode(modelName string) bool
- func (o *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, ...) (ret string, err error)
- func (o *Client) SendStream(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, ...) (err error)
Constants ¶
View Source
const ( DefaultChannels = 1 DefaultSampleRate = 24000 DefaultBitsPerSample = 16 WAVHeaderSize = 44 RIFFHeaderSize = 36 MaxAudioDataSize = 100 * 1024 * 1024 // 100MB limit for security MinAudioDataSize = 44 // Minimum viable audio data AudioDataPrefix = "FABRIC_AUDIO_DATA:" )
WAV audio constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*plugins.PluginBase
ApiKey *plugins.SetupQuestion
}
func (*Client) ListModels ¶
func (*Client) NeedsRawMode ¶
func (*Client) Send ¶
func (o *Client) Send(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions) (ret string, err error)
func (*Client) SendStream ¶
func (o *Client) SendStream(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan string) (err error)
Click to show internal directories.
Click to hide internal directories.