We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00db465 commit 24010feCopy full SHA for 24010fe
examples/server/server.cpp
@@ -395,8 +395,8 @@ struct server_task {
395
}
396
397
398
- if (params.sampling.grammar_lazy) {
399
- GGML_ASSERT(!params.sampling.grammar_triggers.empty());
+ if (params.sampling.grammar_lazy && params.sampling.grammar_triggers.empty()) {
+ throw std::runtime_error("Error: no triggers set for lazy grammar!");
400
401
402
0 commit comments