modelcapability

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const KeyPrefix = "model-capability:"

Variables

This section is empty.

Functions

func Key

func Key(provider, model string) (string, string, string, error)

Types

type Override

type Override struct {
	Provider  string `json:"provider"`
	Model     string `json:"model"`
	CanThink  *bool  `json:"canThink,omitempty"`
	CanVision *bool  `json:"canVision,omitempty"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(store runtimetypes.Store) Service

func (Service) Get

func (s Service) Get(ctx context.Context, provider, model string) (*Override, bool, error)

func (Service) SetThink

func (s Service) SetThink(ctx context.Context, provider, model string, canThink bool) (*Override, error)

func (Service) SetVision

func (s Service) SetVision(ctx context.Context, provider, model string, canVision bool) (*Override, error)

func (Service) Unset

func (s Service) Unset(ctx context.Context, provider, model string) (bool, error)

Jump to

Keyboard shortcuts

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