baseprovider

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TextToEmbeddingProvider added in v0.3.2

type TextToEmbeddingProvider interface {
	GenerateEmbedding(
		ctx context.Context,
		message string,
	) ([]float32, error)

	GetModel() string
	Close() error
}

type TextToJSONProvider added in v0.2.0

type TextToJSONProvider interface {
	GenerateCompletion(
		ctx context.Context,
		messages []chat.Message,
		completionCh chan<- completion.Completion,
	) error

	GetModel() string
	Close() error
}

type TextToSpeechProvider added in v0.2.3

type TextToSpeechProvider interface {
	GenerateSpeech(ctx context.Context, message string) ([]byte, error)

	GetModel() string
	Close() error
}

type TextToTextProvider

type TextToTextProvider interface {
	GenerateCompletion(
		ctx context.Context,
		messages []chat.Message,
		completionCh chan<- completion.Completion,
	) error

	GetModel() string
	Close() error
}

type TextToTextReasoningProvider

type TextToTextReasoningProvider interface {
	GenerateCompletion(
		ctx context.Context,
		messages []chat.Message,
		completionCh chan<- completion.Completion,
	) error

	GetModel() string
	Close() error
}

Jump to

Keyboard shortcuts

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