Documentation
¶
Index ¶
- Constants
- type FireworksLLM
- type FireworksSTT
- func (s *FireworksSTT) Capabilities() stt.STTCapabilities
- func (s *FireworksSTT) Label() string
- func (s *FireworksSTT) Model() string
- func (s *FireworksSTT) Provider() string
- func (s *FireworksSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
- func (s *FireworksSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
- type FireworksSTTOption
- func WithFireworksBaseURL(baseURL string) FireworksSTTOption
- func WithFireworksLanguage(language string) FireworksSTTOption
- func WithFireworksModel(model string) FireworksSTTOption
- func WithFireworksPrompt(prompt string) FireworksSTTOption
- func WithFireworksSkipVAD(skip bool) FireworksSTTOption
- func WithFireworksTemperature(temperature float64) FireworksSTTOption
- func WithFireworksTextTimeoutSeconds(seconds float64) FireworksSTTOption
- func WithFireworksTimestampGranularities(granularities []string) FireworksSTTOption
- func WithFireworksVADKwargs(vadKwargs map[string]any) FireworksSTTOption
Constants ¶
View Source
const ( PluginTitle = "rtp-agent.plugins.fireworksai" PluginVersion = "1.5.15" PluginPackage = "rtp-agent.plugins.fireworksai" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FireworksLLM ¶
type FireworksLLM struct {
// contains filtered or unexported fields
}
func NewFireworksLLM ¶
func NewFireworksLLM(apiKey string, model string) *FireworksLLM
func (*FireworksLLM) Chat ¶
func (l *FireworksLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)
func (*FireworksLLM) Model ¶ added in v0.0.15
func (l *FireworksLLM) Model() string
func (*FireworksLLM) Provider ¶ added in v0.0.15
func (l *FireworksLLM) Provider() string
type FireworksSTT ¶
type FireworksSTT struct {
// contains filtered or unexported fields
}
func NewFireworksSTT ¶
func NewFireworksSTT(apiKey string, opts ...FireworksSTTOption) *FireworksSTT
func (*FireworksSTT) Capabilities ¶
func (s *FireworksSTT) Capabilities() stt.STTCapabilities
func (*FireworksSTT) Label ¶
func (s *FireworksSTT) Label() string
func (*FireworksSTT) Model ¶ added in v0.0.18
func (s *FireworksSTT) Model() string
func (*FireworksSTT) Provider ¶ added in v0.0.18
func (s *FireworksSTT) Provider() string
func (*FireworksSTT) Recognize ¶
func (s *FireworksSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)
func (*FireworksSTT) Stream ¶
func (s *FireworksSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)
type FireworksSTTOption ¶ added in v0.0.15
type FireworksSTTOption func(*FireworksSTT)
func WithFireworksBaseURL ¶ added in v0.0.15
func WithFireworksBaseURL(baseURL string) FireworksSTTOption
func WithFireworksLanguage ¶ added in v0.0.15
func WithFireworksLanguage(language string) FireworksSTTOption
func WithFireworksModel ¶ added in v0.0.15
func WithFireworksModel(model string) FireworksSTTOption
func WithFireworksPrompt ¶ added in v0.0.15
func WithFireworksPrompt(prompt string) FireworksSTTOption
func WithFireworksSkipVAD ¶ added in v0.0.15
func WithFireworksSkipVAD(skip bool) FireworksSTTOption
func WithFireworksTemperature ¶ added in v0.0.15
func WithFireworksTemperature(temperature float64) FireworksSTTOption
func WithFireworksTextTimeoutSeconds ¶ added in v0.0.15
func WithFireworksTextTimeoutSeconds(seconds float64) FireworksSTTOption
func WithFireworksTimestampGranularities ¶ added in v0.0.15
func WithFireworksTimestampGranularities(granularities []string) FireworksSTTOption
func WithFireworksVADKwargs ¶ added in v0.0.15
func WithFireworksVADKwargs(vadKwargs map[string]any) FireworksSTTOption
Click to show internal directories.
Click to hide internal directories.