Merge branch 'main' into merge

This commit is contained in:
ggurdin 2024-09-12 13:55:59 -04:00
commit 11266f88bb
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -58,7 +58,9 @@ class BotOptionsModel {
//////////////////////////////////////////////////////////////////////////
// General Bot Options
//////////////////////////////////////////////////////////////////////////
languageLevel: json[ModelKey.languageLevel],
languageLevel: json[ModelKey.languageLevel] is int
? json[ModelKey.languageLevel]
: null,
safetyModeration: json[ModelKey.safetyModeration] ?? true,
mode: json[ModelKey.mode] ?? "discussion",