Skip to content

Commit 91d05ab

Browse files
committed
fix: adjust kv_override member names to match llama.cpp
1 parent df45a4b commit 91d05ab

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llama_cpp/llama_cpp.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -613,17 +613,17 @@ class llama_batch(ctypes.Structure):
613613
# };
614614
class llama_model_kv_override_value(ctypes.Union):
615615
_fields_ = [
616-
("int_value", ctypes.c_int64),
617-
("float_value", ctypes.c_double),
618-
("bool_value", ctypes.c_bool),
619-
("str_value", ctypes.c_char * 128),
616+
("val_i64", ctypes.c_int64),
617+
("val_f64", ctypes.c_double),
618+
("val_bool", ctypes.c_bool),
619+
("val_str", ctypes.c_char * 128),
620620
]
621621

622622
if TYPE_CHECKING:
623-
int_value: int
624-
float_value: float
625-
bool_value: bool
626-
str_value: bytes
623+
val_i64: int
624+
val_f64: float
625+
val_bool: bool
626+
val_str: bytes
627627

628628

629629
class llama_model_kv_override(ctypes.Structure):

0 commit comments

Comments
 (0)