Currently, it seems there is no way to send a signal to interrupt the text generation in the model.run().
|
/// User-facing method to run the model. |
|
/// |
|
/// Untyped input is required unfortunately. |
|
pub async fn run(&mut self, input: JsValue) -> Result<JsValue, JsValue> { |
|
self.inner.run(input).await |
|
} |
My current workaround is to call location.reload() to interrupt it.
Currently, it seems there is no way to send a signal to interrupt the text generation in the
model.run().ratchet/crates/ratchet-web/src/model.rs
Lines 170 to 175 in 4ff7092
My current workaround is to call
location.reload()to interrupt it.