Documentation
¶
Overview ¶
Package utils provides some utility functions for gptchat
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateTokens ¶
CalculateTokens calculate tokens for given model and content
func TrimByTokens ¶
TrimByTokens trim content by tokens
find the index to split the content by bi-search
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.