You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the example code, the following exception gets thrown:
UnexpectedCharacters: No terminal matches '"' in the current parser context, at line 1 col 7
The model had generated output {"a": " and the parser did not parse this particular output. Since {"a": " is a valid start of a JSON object, the error is a bit confusing. But playing around with different grammar, prompts and models a bit shows that the model can (and often does) generate text the parser can not parse, which results in lark.lexer.UnexpectedCharacters exception.
The text was updated successfully, but these errors were encountered:
When running the example code, the following exception gets thrown:
The model had generated output
{"a": "
and the parser did not parse this particular output. Since{"a": "
is a valid start of a JSON object, the error is a bit confusing. But playing around with different grammar, prompts and models a bit shows that the model can (and often does) generate text the parser can not parse, which results inlark.lexer.UnexpectedCharacters
exception.The text was updated successfully, but these errors were encountered: