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

Method EstimatePromptCost

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

Source from the content-addressed store, hash-verified

46 EstimateEmbeddingsCost(r *goopenai.EmbeddingRequest) (float64, error)
47 EstimateCompletionCost(model string, tks int) (float64, error)
48 EstimatePromptCost(model string, tks int) (float64, error)
49 EstimateTotalCost(model string, promptTks, completionTks int) (float64, error)
50 EstimateEmbeddingsInputCost(model string, tks int) (float64, error)
51}

Callers 4

getMessagesHandlerFunction · 0.65
decorateEventMethod · 0.65

Implementers 2

CostEstimatorinternal/provider/azure/cost.go
CostEstimatorinternal/provider/openai/cost.go

Calls

no outgoing calls

Tested by

no test coverage detected