MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / add_token_string

Method add_token_string

examples/server/server.cpp:448–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446 }
447
448 void add_token_string(const completion_token_output &token) {
449 if (command == RELEASE)
450 {
451 return;
452 }
453 cache_tokens.push_back(token.tok);
454 generated_token_probs.push_back(token);
455 }
456
457 void release() {
458 if (state == IDLE || state == PROCESSING)

Callers 1

process_tokenMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected