LocalAI/core/schema/tokenize.go
Richard Palethorpe 557d0f0f04
feat(api): Allow coding agents to interactively discover how to control and configure LocalAI (#9084)
Signed-off-by: Richard Palethorpe <io@richiejp.com>
2026-04-04 15:14:35 +02:00

10 lines
199 B
Go

package schema
type TokenizeRequest struct {
BasicModelRequest
Content string `json:"content"` // text to tokenize
}
type TokenizeResponse struct {
Tokens []int32 `json:"tokens"` // token IDs
}