providers

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveThinkingEffort

func ResolveThinkingEffort(provider, model, effort string) (string, error)

Types

type Model

type Model struct {
	ID              string   `yaml:"id"`
	Name            string   `yaml:"name"`
	ContextWindow   int      `yaml:"context_window"`
	ThinkingEfforts []string `yaml:"thinking_efforts"`
}

func (Model) SupportsThinkingEffort

func (m Model) SupportsThinkingEffort() bool

type Provider

type Provider struct {
	ID     string  `yaml:"id"`
	Name   string  `yaml:"name"`
	Models []Model `yaml:"models"`
}

type Registry

type Registry struct {
	Providers []Provider `yaml:"providers"`
}

func Load

func Load() (*Registry, error)

func (*Registry) GetModel

func (r *Registry) GetModel(providerID, modelID string) (Model, bool)

func (*Registry) GetModelContextWindow

func (r *Registry) GetModelContextWindow(providerID, modelID string) (int, bool)

func (*Registry) GetProvider

func (r *Registry) GetProvider(id string) (Provider, bool)

Jump to

Keyboard shortcuts

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