MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / gguf_set_val_str

Function gguf_set_val_str

subprojects/llama.cpp/ggml/src/gguf.cpp:1043–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1041}
1042
1043void gguf_set_val_str(struct gguf_context * ctx, const char * key, const char * val) {
1044 gguf_check_reserved_keys(key, val);
1045 gguf_remove_key(ctx, key);
1046 ctx->kv.emplace_back(key, std::string(val));
1047}
1048
1049void gguf_set_arr_data(struct gguf_context * ctx, const char * key, enum gguf_type type, const void * data, size_t n) {
1050 gguf_check_reserved_keys(key, data);

Callers 6

export_ggufFunction · 0.85
save_imatrixMethod · 0.85
add_kvMethod · 0.85
get_random_gguf_contextFunction · 0.85
gguf_set_kvFunction · 0.85

Calls 3

gguf_check_reserved_keysFunction · 0.85
gguf_remove_keyFunction · 0.85
stringClass · 0.85

Tested by 1

get_random_gguf_contextFunction · 0.68