Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountWords ¶
CountWords returns the number of words in a string
func EstimateCost ¶
EstimateCost calculates estimated cost based on model and token count. It uses the provider registry to lookup accurate pricing from Catwalk's provider configs. Falls back to zero cost if the model is not found in the registry.
func EstimateCostLegacy ¶ added in v0.5.0
EstimateCostLegacy is the old hardcoded cost estimation function. Deprecated: Use EstimateCost which uses the provider registry instead.
func EstimateTokens ¶
EstimateTokens provides a rough estimation of token count This is a simplified version - actual tokenization varies by model
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.