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

Method EstimateTotalCost

internal/message/handler.go:39–39  ·  view source on GitHub ↗
(model string, promptTks, completionTks int)

Source from the content-addressed store, hash-verified

37 EstimateChatCompletionStreamCostWithTokenCounts(model, content string) (int, float64, error)
38 EstimateCompletionCost(model string, tks int) (float64, error)
39 EstimateTotalCost(model string, promptTks, completionTks int) (float64, error)
40 EstimateEmbeddingsInputCost(model string, tks int) (float64, error)
41 EstimateChatCompletionPromptTokenCounts(model string, r *goopenai.ChatCompletionRequest) (int, error)
42}

Callers 6

getMessagesHandlerFunction · 0.65
parseResultFunction · 0.65
getChatCompletionHandlerFunction · 0.65

Implementers 1

CostEstimatorinternal/provider/openai/cost.go

Calls

no outgoing calls

Tested by

no test coverage detected