api

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: AGPL-3.0, Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToProviderAPIPath

func ToProviderAPIPath(target Provider, path string) string

Types

type OllamaAPI

type OllamaAPI string

type OpenAIProxy added in v1.2.0

type OpenAIProxy interface {
	Proxy() http.HandlerFunc
}

type Provider

type Provider string
const (
	ProviderOpenAI    Provider = "openai"
	ProviderAnthropic Provider = "anthropic"
	ProviderOllama    Provider = "ollama"
	ProviderVertex    Provider = "vertex"
	ProviderBedrock   Provider = "bedrock"
)

func ToProvider

func ToProvider(s string) (Provider, error)

func (Provider) String

func (in Provider) String() string

type ProviderAPIMapping

type ProviderAPIMapping map[string]string

type TranslationProxy

type TranslationProxy interface {
	Proxy() http.HandlerFunc
	ModifyRequest(*httputil.ProxyRequest)
	ModifyResponse(*http.Response) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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