| 333 | |
| 334 | template <typename T> |
| 335 | static T json_value(const json &body, const std::string &key, const T &default_value) |
| 336 | { |
| 337 | // Fallback null to default value |
| 338 | return body.contains(key) && !body.at(key).is_null() |
| 339 | ? body.value(key, default_value) |
| 340 | : default_value; |
| 341 | } |
| 342 | |
| 343 | struct llama_client_slot |
| 344 | { |
no test coverage detected