From 3ceb583c3d9695284da25065e9aa2d1f83885f75 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 26 Jan 2024 23:38:36 +0000 Subject: [PATCH] =?UTF-8?q?placeholder=20token:=20"=E2=96=91"=20->=20"=20"?= =?UTF-8?q?=20(for=20mistral)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- declctrl/src/declctrl.rs | 2 +- jsctrl/ts/aici.ts | 2 +- pyaici/server.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/declctrl/src/declctrl.rs b/declctrl/src/declctrl.rs index 3525c391..d0752172 100644 --- a/declctrl/src/declctrl.rs +++ b/declctrl/src/declctrl.rs @@ -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 diff --git a/jsctrl/ts/aici.ts b/jsctrl/ts/aici.ts index c012e826..75dd0cef 100644 --- a/jsctrl/ts/aici.ts +++ b/jsctrl/ts/aici.ts @@ -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; } diff --git a/pyaici/server.py b/pyaici/server.py index b0a469d0..cbebd1af 100644 --- a/pyaici/server.py +++ b/pyaici/server.py @@ -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)