common : remove json.hpp from common.cpp (#12697)

* common : remove json.hpp from common.cpp

* fix comment
This commit is contained in:
Xuan-Son Nguyen 2025-04-02 09:58:34 +02:00 committed by GitHub
parent 9bacd6b374
commit 42eb248f46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 38 deletions

View file

@ -121,10 +121,6 @@ struct common_grammar_trigger {
common_grammar_trigger_type type;
std::string value;
llama_token token = LLAMA_TOKEN_NULL;
// T can only be nlohmann::ordered_json
template <class T> T to_json() const;
template <class T> static common_grammar_trigger from_json(const T & in);
};
// sampling parameters