Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GPT2 ¶ added in v0.0.24
type GPT2 struct {
// contains filtered or unexported fields
}
func (*GPT2) GetNumTokensFromMessage ¶ added in v0.0.24
func (t *GPT2) GetNumTokensFromMessage(messages schema.ChatMessages) (uint, error)
type OpenAI ¶
type OpenAI struct {
// contains filtered or unexported fields
}
func (*OpenAI) GetNumTokensFromMessage ¶
func (t *OpenAI) GetNumTokensFromMessage(messages schema.ChatMessages) (uint, error)
Click to show internal directories.
Click to hide internal directories.