fix regression that caused inlined ifs to be displayed as choices
This commit is contained in:
parent
d28e56a1aa
commit
03d2809295
|
@ -269,6 +269,9 @@ impl ChatDB {
|
|||
else if non_choice_tokens.contains(&key.as_str()) {
|
||||
// skip over the other non-choice tokens
|
||||
}
|
||||
else if key.as_str().starts_with(TOKEN_IF_INLINE) {
|
||||
// skip over inlined if-statements
|
||||
}
|
||||
else {
|
||||
result.choice_text = Some(key.to_string());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue