Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Probe ¶
Probe makes a cheap, token-free connectivity check against the endpoint by listing models. It returns nil if the endpoint responds, or a descriptive error otherwise. A short timeout keeps the wizard responsive. The model argument is accepted for signature stability but not needed by ListModels.
Types ¶
type Preset ¶
type Preset struct {
Name string // display name shown in the picker
BaseURL string // prefilled, editable; "" means the OpenAI SDK default
DefaultModel string // prefilled model field
DefaultKey string // prefilled api_key
KeyRequired bool // informational hint only; never blocks saving
}
Preset is a provider template that prefills connection fields in the wizard.
Click to show internal directories.
Click to hide internal directories.