token

package
v0.0.0-...-e9a2108 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageTokenCount

func MessageTokenCount(messages []openai.ChatCompletionMessage, model string) (numTokens int, err error)

MessageTokenCount Count the number of tokens in the session context TODO Token calculation methods that are not based on the vendor model may be different, and need to be differentiated according to the vendor model

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL