Documentation
¶
Index ¶
- func AvailableModels(ctx context.Context, options *Options) (map[string]bool, error)
- func IsAnthropic(id string) bool
- func IsGoogle(id string) bool
- func IsOpenAI(id string) bool
- func LookupPath(tool, fallback string) string
- func Models(ctx context.Context, options *Options, modelOpts *ModelOptions) ([]string, error)
- type ModelFilter
- type ModelKind
- type ModelOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableModels ¶
AvailableModels returns the set of model IDs advertised by the Wingman server addressed by options.
func LookupPath ¶ added in v0.8.3
Types ¶
type ModelFilter ¶
ModelFilter narrows a candidate model list by ID. A nil filter matches every model.
type ModelOptions ¶
type ModelOptions struct {
Kind ModelKind
Filter ModelFilter
}
type Options ¶
func WithDefaults ¶
WithDefaults fills in any missing Options fields from environment variables. The same pointer is returned for chaining; a new zero-value Options is allocated if nil is passed.
Click to show internal directories.
Click to hide internal directories.