MCPcopy
hub / github.com/QuantumNous/new-api / roundRatioValue

Function roundRatioValue

controller/ratio_sync.go:698–700  ·  view source on GitHub ↗
(value float64)

Source from the content-addressed store, hash-verified

696}
697
698func roundRatioValue(value float64) float64 {
699 return math.Round(value*1e6) / 1e6
700}
701
702func isModelsDevAPIEndpoint(rawURL string) bool {
703 parsedURL, err := url.Parse(rawURL)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected