LocalAI/core/schema/tokenize.go

11 lines
178 B
Go
Raw Normal View History

package schema
type TokenizeRequest struct {
Content string `json:"content"`
Model string `json:"model"`
}
type TokenizeResponse struct {
Tokens []int32 `json:"tokens"`
}