change(web): api compat with LMLayer SMP fixes

This commit is contained in:
jahorton 2020-01-15 12:24:12 +07:00
parent 5cc282c660
commit 19bb5e07d7

View file

@ -108,9 +108,9 @@ namespace com.keyman.text.prediction {
// Establishes KMW's platform 'capabilities', which limit the range of context a LMLayer
// model may expect.
let capabilities: Capabilities = {
maxLeftContextCodeUnits: 64,
maxLeftContextCodePoints: 64,
// Since the apps don't yet support right-deletions.
maxRightContextCodeUnits: keyman.isEmbedded ? 0 : 64
maxRightContextCodePoints: keyman.isEmbedded ? 0 : 64
}
if(!this.canEnable()) {