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