Skip to content

Commit 38c4865

Browse files
committed
Sync server : fix incorrect usage of llama_get_embeddings()
1 parent 1a52786 commit 38c4865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llama_cpp/llama_cpp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,7 @@ def llama_n_threads_batch(ctx: llama_context_p, /) -> int:
25362536

25372537

25382538
# // Set whether the model is in embeddings mode or not
2539+
# // TODO: rename to avoid confusion with llama_get_embeddings()
25392540
# LLAMA_API void llama_set_embeddings(struct llama_context * ctx, bool embeddings);
25402541
@ctypes_function("llama_set_embeddings", [llama_context_p_ctypes, ctypes.c_bool], None)
25412542
def llama_set_embeddings(ctx: llama_context_p, embeddings: bool, /):

0 commit comments

Comments
 (0)