Skip to content

Commit

Permalink
fix(cpp): use size 4096 for get meta str
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jan 23, 2025
1 parent 8d36749 commit 1bf44e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LlamaContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Napi::Value LlamaContext::GetModelInfo(const Napi::CallbackInfo &info) {
for (int i = 0; i < count; i++) {
char key[256];
llama_model_meta_key_by_index(model, i, key, sizeof(key));
char val[2048];
char val[4096];
llama_model_meta_val_str_by_index(model, i, val, sizeof(val));

metadata.Set(key, val);
Expand Down

0 comments on commit 1bf44e5

Please sign in to comment.