Skip to content

Commit 1a85949

Browse files
authored
llava : proper description fix (#12668)
1 parent 6c02a03 commit 1a85949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1401,7 +1401,7 @@ struct clip_ctx * clip_init(const char * fname, struct clip_context_params ctx_p
14011401
const std::string name = gguf_get_val_str(ctx, idx_name);
14021402
LOG_INF("%s: model name: %s\n", __func__, name.c_str());
14031403
}
1404-
const int idx_desc = get_key_idx(ctx, KEY_DESCRIPTION);
1404+
const int idx_desc = gguf_find_key(ctx, KEY_DESCRIPTION);
14051405
if (idx_desc != -1) { // ditto
14061406
const std::string description = gguf_get_val_str(ctx, idx_desc);
14071407
LOG_INF("%s: description: %s\n", __func__, description.c_str());

0 commit comments

Comments
 (0)