Skip to content

Commit 71719a6

Browse files
author
Olivier Chafik
committed
add comment on limits to common_grammar_trigger.to/from json specializations
1 parent 24010fe commit 71719a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ struct common_grammar_trigger {
122122
std::string value;
123123
llama_token token = LLAMA_TOKEN_NULL;
124124

125+
// T can only be nlohmann::ordered_json
125126
template <class T> T to_json() const;
126127
template <class T> static common_grammar_trigger from_json(const T & in);
127128
};

0 commit comments

Comments
 (0)