Documentation
¶
Overview ¶
Package modelprovider validates the frozen upstream connection supplied to a native Harness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrConfiguration = errors.New("invalid model provider configuration")
Functions ¶
func SchemeAllowed ¶ added in v0.0.13
SchemeAllowed is the one base URL scheme rule: HTTPS, or HTTP to a loopback or private IP address, so the key never crosses a public network in plain text. A host name never qualifies for HTTP, because it can resolve anywhere.
func TokenLimitsValid ¶ added in v0.0.12
TokenLimitsValid holds the token-limit rule: unset is zero, and an output limit never exceeds a set context window.
Types ¶
type Protocol ¶
type Protocol string
type Provider ¶
type Provider struct {
Protocol Protocol `json:"protocol"`
BaseURL string `json:"base_url"`
APIKey string `json:"api_key"`
ContextWindow int32 `json:"context_window,omitempty"`
MaxOutputTokens int32 `json:"max_output_tokens,omitempty"`
}
Provider is the confidential, frozen upstream bundle supplied by Core. Engine selection and model identity remain separate execution inputs.