MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / addDefaultValues

Function addDefaultValues

internal/manager/route.go:77–88  ·  view source on GitHub ↗
(r *route.Route)

Source from the content-addressed store, hash-verified

75}
76
77func addDefaultValues(r *route.Route) {
78 if r.CacheConfig != nil && r.CacheConfig.Enabled && len(r.CacheConfig.Ttl) == 0 {
79 r.CacheConfig.Ttl = "168h"
80 }
81
82 for _, step := range r.Steps {
83 if len(step.Timeout) == 0 {
84 step.Timeout = "5m"
85 }
86 }
87
88}
89
90func checkModelValidity(provider, model string) bool {
91 if provider == "azure" {

Callers 1

CreateRouteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected