Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/InferCore/InferCore
/ estimateBudgetConsumption
Function
estimateBudgetConsumption
internal/policy/basic_engine.go:180–186 ·
view source on GitHub ↗
(req types.AIRequest)
Source
from the content-addressed store, hash-verified
178
}
179
180
func
estimateBudgetConsumption(req types.AIRequest) float64 {
181
maxTokens := req.Options.MaxTokens
182
if
maxTokens <= 0 {
183
maxTokens = 256
184
}
185
return
1.0 + float64(maxTokens)/256.0
186
}
Callers
1
Evaluate
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected