Skip to content

Commit

Permalink
placeholder token: "░" -> " " (for mistral)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoskal committed Jan 26, 2024
1 parent 545d611 commit 3ceb583
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion declctrl/src/declctrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ impl AiciCtrl for Runner {
// this is a bit late in the game, but it's the best we can do
MidProcessResult::Splice {
backtrack: 0,
ff_tokens: tokenize(""),
ff_tokens: tokenize(" "),
}

// // we pop the useless generated token
Expand Down
2 changes: 1 addition & 1 deletion jsctrl/ts/aici.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ export class AiciAsync implements AiciCallbacks {
if (r2._n_suspended) {
// Need to generate one fake token...
this._pendingCb = this._token;
const f = new FixedTokens("");
const f = new FixedTokens(" ");
assert(f.fixedTokens.length === 1);
this._token = f;
}
Expand Down
2 changes: 1 addition & 1 deletion pyaici/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def mid_process(self, fork_group: list[SeqId]) -> MidProcessResult:
if r2.suspended:
# need to generate one fake token...
self._pending_cb = self._cb
f = FixedTokens("")
f = FixedTokens(" ")
assert len(f.fixed_tokens) == 1
self._cb = f
r = self._cb._mid_process(fork_group)
Expand Down

0 comments on commit 3ceb583

Please sign in to comment.