Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountBetaTokensViaTiktoken ¶
func CountBetaTokensViaTiktoken(req *anthropic.BetaMessageCountTokensParams) (int, error)
CountBetaTokensViaTiktoken approximates token count for OpenAI-style providers using tiktoken
func CountTokensViaTiktoken ¶
func CountTokensViaTiktoken(req *anthropic.MessageCountTokensParams) (int, error)
CountTokensViaTiktoken approximates token count for OpenAI-style providers using tiktoken
func EstimateInputTokens ¶
func EstimateInputTokens(req *openai.ChatCompletionNewParams) (int, error)
EstimateInputTokens estimates input tokens from OpenAI request using tiktoken
func EstimateOutputTokens ¶
EstimateOutputTokens estimates output tokens from accumulated content
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.