Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodingForModel ¶ added in v0.1.3
func NumTokensFromMessages ¶
func NumTokensFromMessages(model string, messages []model.ChatCompletionMessage) (numTokens int, err error)
func NumTokensFromString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.