Documentation
¶
Index ¶
- Constants
- func ProbeLocalOllamaAPI(ctx context.Context) (baseURL string, ok bool)
- func ResolveMaxOutputTokens(states []statetype.BackendRuntimeState, provider, model string) int
- func StatesFromMap(m map[string]statetype.BackendRuntimeState) []statetype.BackendRuntimeState
- type BackendCheck
- type Input
- type Issue
- type Result
Constants ¶
View Source
const ( CategoryDefaults = "defaults" CategoryRegistration = "registration" CategoryHealth = "health" )
View Source
const DefaultOllamaSuggestModel = "qwen2.5:7b"
Variables ¶
This section is empty.
Functions ¶
func ResolveMaxOutputTokens ¶ added in v0.29.0
func ResolveMaxOutputTokens(states []statetype.BackendRuntimeState, provider, model string) int
func StatesFromMap ¶
func StatesFromMap(m map[string]statetype.BackendRuntimeState) []statetype.BackendRuntimeState
Types ¶
type BackendCheck ¶
type BackendCheck struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
BaseURL string `json:"baseUrl"`
Status string `json:"status"`
Reachable bool `json:"reachable"`
DefaultProvider bool `json:"defaultProvider"`
ModelCount int `json:"modelCount"`
ChatModelCount int `json:"chatModelCount"`
ChatModels []string `json:"chatModels,omitempty"`
Error string `json:"error,omitempty"`
Hint string `json:"hint,omitempty"`
}
type Input ¶
type Result ¶
type Result struct {
DefaultModel string `json:"defaultModel"`
DefaultProvider string `json:"defaultProvider"`
DefaultMaxOutputTokens int `json:"defaultMaxOutputTokens,omitempty"`
DefaultChain string `json:"defaultChain"`
HITLPolicyName string `json:"hitlPolicyName"`
BackendCount int `json:"backendCount"`
ReachableBackendCount int `json:"reachableBackendCount"`
Issues []Issue `json:"issues"`
BackendChecks []BackendCheck `json:"backendChecks,omitempty"`
ResolvedFrom map[string]string `json:"resolvedFrom,omitempty"`
}
func OverlayEffectiveDefaults ¶ added in v0.33.0
func (Result) BlockingIssues ¶
Click to show internal directories.
Click to hide internal directories.