fireworksai

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL