providers

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTextToEmbeddingprovider added in v0.3.2

func LoadTextToEmbeddingprovider(
	provider AIProvider,
	model string,
) (baseprovider.TextToEmbeddingProvider, error)

func LoadTextToJSONProvider added in v0.2.0

func LoadTextToJSONProvider(
	provider AIProvider,
	model string,
) (baseprovider.TextToJSONProvider, error)

func LoadTextToSpeechProvider added in v0.2.3

func LoadTextToSpeechProvider(
	provider AIProvider,
	model string,
) (baseprovider.TextToSpeechProvider, error)

func LoadTextToTextProvider

func LoadTextToTextProvider(
	provider AIProvider,
	model string,
) (baseprovider.TextToTextProvider, error)

func LoadTextToTextReasoningProvider

func LoadTextToTextReasoningProvider(
	provider AIProvider,
	model string,
) (baseprovider.TextToTextProvider, error)

Types

type AIProvider

type AIProvider string
const (
	OpenAIProvider     AIProvider = "openai"
	AnthropicProvider  AIProvider = "anthropic"
	OpenRouterProvider AIProvider = "openrouter"
	OllamaProvider     AIProvider = "ollama"
)

func CheckProvider

func CheckProvider() AIProvider

func (AIProvider) String

func (p AIProvider) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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