summaryrefslogtreecommitdiff
path: root/llama.h
diff options
context:
space:
mode:
Diffstat (limited to 'llama.h')
-rw-r--r--llama.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/llama.h b/llama.h
index 0a79fa76..8b1b15ed 100644
--- a/llama.h
+++ b/llama.h
@@ -195,15 +195,19 @@ extern "C" {
LLAMA_KV_OVERRIDE_TYPE_INT,
LLAMA_KV_OVERRIDE_TYPE_FLOAT,
LLAMA_KV_OVERRIDE_TYPE_BOOL,
+ LLAMA_KV_OVERRIDE_TYPE_STR,
};
struct llama_model_kv_override {
- char key[128];
enum llama_model_kv_override_type tag;
+
+ char key[128];
+
union {
- int64_t int_value;
- double float_value;
- bool bool_value;
+ int64_t val_i64;
+ double val_f64;
+ bool val_bool;
+ char val_str[128];
};
};