| 19 | }; |
| 20 | |
| 21 | static std::string get_kv_str(struct gguf_context * ctx_gguf, const std::string & key){ |
| 22 | int id = gguf_find_key(ctx_gguf, key.c_str()); |
| 23 | return id < 0 ? "" : std::string(gguf_get_val_str(ctx_gguf, id)); |
| 24 | } |
| 25 | |
| 26 | static float get_kv_f32(struct gguf_context * ctx_gguf, const std::string & key) { |
| 27 | int id = gguf_find_key(ctx_gguf, key.c_str()); |
no test coverage detected