account for pre-1a difficulty in bot options fromJson method (#1042)
This commit is contained in:
parent
9060fd84f8
commit
6655e240ab
1 changed files with 3 additions and 1 deletions
|
|
@ -64,7 +64,9 @@ class BotOptionsModel {
|
|||
//////////////////////////////////////////////////////////////////////////
|
||||
languageLevel: json[ModelKey.languageLevel] is int
|
||||
? json[ModelKey.languageLevel]
|
||||
: null,
|
||||
: json[ModelKey] == "PREA1"
|
||||
? 0
|
||||
: null,
|
||||
safetyModeration: json[ModelKey.safetyModeration] ?? true,
|
||||
mode: json[ModelKey.mode] ?? BotMode.discussion,
|
||||
targetLanguage: json[ModelKey.targetLanguage],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue