| 19932 | } |
| 19933 | |
| 19934 | bool gguf_get_val_bool(const struct gguf_context * ctx, int key_id) { |
| 19935 | GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_BOOL); |
| 19936 | return ctx->kv[key_id].value.bool_; |
| 19937 | } |
| 19938 | |
| 19939 | const char * gguf_get_val_str(const struct gguf_context * ctx, int key_id) { |
| 19940 | GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_STRING); |