MCPcopy Create free account
hub / github.com/evilsocket/cake / next_token

Method next_token

cake-core/src/models/exaone4/model.rs:52–58  ·  view source on GitHub ↗
(&mut self, index: usize)

Source from the content-addressed store, hash-verified

50 }
51
52 async fn next_token(&mut self, index: usize) -> Result<Token> {
53 if self.base.generated == 0 {
54 let dialog = self.history.encode_dialog_to_prompt();
55 self.base.prepare_prompt(&dialog)?;
56 }
57 self.base.next_token(index).await
58 }
59
60 fn generated_tokens(&self) -> usize {
61 self.base.generated

Callers

nothing calls this directly

Calls 2

prepare_promptMethod · 0.80

Tested by

no test coverage detected