Versions in this module Expand all Collapse all v1 v1.0.0 Mar 21, 2026 Changes in this version + func Register(p Provider) + type FieldOption struct + Label string + Value string + type FieldType string + const FieldInput + const FieldSelect + type LLMClient interface + Chat func(messages []Message) (string, error) + ChatStream func(messages []Message, callback StreamCallback) (string, error) + CheckConnection func() error + GetModel func() string + type Message struct + Content string + Role string + type Provider interface + BuildClient func(values map[string]string, model string) (LLMClient, error) + DefaultModel func() string + DisplayName func() string + ID func() string + SetupFields func() []SetupField + func All() []Provider + func Get(id string) (Provider, bool) + type SetupField struct + Default string + Description string + EnvFallback string + Key string + Options []FieldOption + Placeholder string + Secret bool + Title string + Type FieldType + type StreamCallback func(chunk string)