MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / abs

Function abs

internal/thinking/validate.go:375–380  ·  view source on GitHub ↗
(x int)

Source from the content-addressed store, hash-verified

373}
374
375func abs(x int) int {
376 if x < 0 {
377 return -x
378 }
379 return x
380}
381
382func logClamp(provider, model string, original, clampedTo, min, max int) {
383 log.WithFields(log.Fields{

Callers 1

clampLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected