MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / gguf_set_val_str

Function gguf_set_val_str

external/ggml/src/gguf.cpp:1149–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147}
1148
1149void gguf_set_val_str(struct gguf_context * ctx, const char * key, const char * val) {
1150 gguf_check_reserved_keys(key, val);
1151 gguf_remove_key(ctx, key);
1152 ctx->kv.emplace_back(key, std::string(val));
1153}
1154
1155void gguf_set_arr_data(struct gguf_context * ctx, const char * key, enum gguf_type type, const void * data, size_t n) {
1156 gguf_check_reserved_keys(key, data);

Callers 2

gguf_set_kvFunction · 0.85
mnist_model_saveFunction · 0.85

Calls 3

gguf_check_reserved_keysFunction · 0.85
gguf_remove_keyFunction · 0.85
stringFunction · 0.50

Tested by

no test coverage detected