MCPcopy Create free account
hub / github.com/InferCore/InferCore / inferRequestTimeout

Method inferRequestTimeout

internal/server/server.go:94–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func (s *Server) inferRequestTimeout() time.Duration {
95 if s.cfg.Server.RequestTimeoutMS <= 0 {
96 return 30 * time.Second
97 }
98 return time.Duration(s.cfg.Server.RequestTimeoutMS) * time.Millisecond
99}
100
101func New(cfg *config.Config) *Server {
102 return NewWithDependencies(cfg, slo.NewMemoryEngineFromConfig(cfg.SLO), telemetry.NewExporterFromConfig(cfg.Telemetry))

Callers 1

inferMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected