baseten

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasetenLLM

type BasetenLLM struct {
	// contains filtered or unexported fields
}

func NewBasetenLLM

func NewBasetenLLM(apiKey string, model string) *BasetenLLM

func (*BasetenLLM) Chat

func (l *BasetenLLM) Chat(ctx context.Context, chatCtx *llm.ChatContext, opts ...llm.ChatOption) (llm.LLMStream, error)

type BasetenSTT

type BasetenSTT struct {
	// contains filtered or unexported fields
}

func NewBasetenSTT

func NewBasetenSTT(apiKey string, model string) *BasetenSTT

func (*BasetenSTT) Capabilities

func (s *BasetenSTT) Capabilities() stt.STTCapabilities

func (*BasetenSTT) Label

func (s *BasetenSTT) Label() string

func (*BasetenSTT) Recognize

func (s *BasetenSTT) Recognize(ctx context.Context, frames []*model.AudioFrame, language string) (*stt.SpeechEvent, error)

func (*BasetenSTT) Stream

func (s *BasetenSTT) Stream(ctx context.Context, language string) (stt.RecognizeStream, error)

type BasetenTTS

type BasetenTTS struct {
	// contains filtered or unexported fields
}

func NewBasetenTTS

func NewBasetenTTS(apiKey string, model string) *BasetenTTS

func (*BasetenTTS) Capabilities

func (t *BasetenTTS) Capabilities() tts.TTSCapabilities

func (*BasetenTTS) Label

func (t *BasetenTTS) Label() string

func (*BasetenTTS) NumChannels

func (t *BasetenTTS) NumChannels() int

func (*BasetenTTS) SampleRate

func (t *BasetenTTS) SampleRate() int

func (*BasetenTTS) Stream

func (t *BasetenTTS) Stream(ctx context.Context) (tts.SynthesizeStream, error)

func (*BasetenTTS) Synthesize

func (t *BasetenTTS) Synthesize(ctx context.Context, text string) (tts.ChunkedStream, error)

Jump to

Keyboard shortcuts

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