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

Method EstimateCompletionCost

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

Source from the content-addressed store, hash-verified

36 EstimateEmbeddingsCost(r *goopenai.EmbeddingRequest) (float64, error)
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)

Callers 4

getMessagesHandlerFunction · 0.65
decorateEventMethod · 0.65

Implementers 1

CostEstimatorinternal/provider/openai/cost.go

Calls

no outgoing calls

Tested by

no test coverage detected