provider

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalCaddyfileConfig

func UnmarshalCaddyfileConfig(d *caddyfile.Dispenser, cfg *runtimeprovider.ProviderConfig) error

UnmarshalCaddyfileConfig parses common provider settings from a Caddyfile block.

func ValidateProviderType

func ValidateProviderType(cfg *runtimeprovider.ProviderConfig, expected string) error

ValidateProviderType ensures the provider config name matches the mounted module name.

Types

type Module

type Module interface {
	caddy.Module
	runtimeprovider.Provider
}

Module is a provider implementation that can be loaded through Caddy's module system.

type RuntimeAdapter

type RuntimeAdapter struct {
	runtimeprovider.ProviderConfig
	Runtime runtimeprovider.Provider `json:"-"`
}

RuntimeAdapter delegates provider runtime calls to a pkg/llm/provider implementation.

func (*RuntimeAdapter) Capabilities

func (*RuntimeAdapter) Chat

func (*RuntimeAdapter) Config

func (*RuntimeAdapter) ListModels

func (a *RuntimeAdapter) ListModels(ctx context.Context) ([]runtimeprovider.ModelInfo, error)

func (*RuntimeAdapter) StreamChat

Directories

Path Synopsis
Package anthropic adapts the Anthropic runtime provider to Caddy.
Package anthropic adapts the Anthropic runtime provider to Caddy.
Package deepseek adapts the DeepSeek runtime provider to Caddy.
Package deepseek adapts the DeepSeek runtime provider to Caddy.
Package gemini adapts the Gemini runtime provider to Caddy.
Package gemini adapts the Gemini runtime provider to Caddy.
Package ollama adapts the Ollama runtime provider to Caddy.
Package ollama adapts the Ollama runtime provider to Caddy.
Package openai adapts the OpenAI runtime provider to Caddy.
Package openai adapts the OpenAI runtime provider to Caddy.
Package openrouter adapts the OpenRouter runtime provider to Caddy.
Package openrouter adapts the OpenRouter runtime provider to Caddy.
Package zhipu adapts the Zhipu runtime provider to Caddy.
Package zhipu adapts the Zhipu runtime provider to Caddy.

Jump to

Keyboard shortcuts

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