Skip to content

model decodeToken

GitHub Action edited this page Jul 9, 2026 · 1 revision
std::string decodeToken(int tok)

Basic Info

Decodes a token ID into the character string.

Return Type

Returns an std::string

Parameters

Parameter Type Use Optional
tok int Token ID

Example

// Calling the decodeToken() function
model m();
m.decodeToken(91);

Clone this wiki locally