providers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTextToJSONProvider added in v0.2.0

func LoadTextToJSONProvider(
	provider AIProvider,
	model string,
) (baseprovider.TextToJSONProvider, 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