model

package
v1.0.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package model resolves LLM credentials at runtime. A Resolver maps a model string (e.g. "anthropic/claude-haiku-4-5") to the API base URL and API key that the runtime should use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver func(model string) (apiURL string, apikey string, err error)

Resolver returns the API base URL and key for a given model. Implementations may read from env, secret stores, or static config.

func StaticResolver

func StaticResolver(apiURL, apiKey string) Resolver

StaticResolver returns a Resolver that always returns the same apiURL and apiKey regardless of the model passed in. Useful for tests and single-provider deployments.

Jump to

Keyboard shortcuts

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