From bc9a2e8e7f1e3cf7195bb32cdfff55b8958dd14e Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Tue, 21 May 2024 16:19:59 -0700 Subject: [PATCH] Update llama.cpp Co-authored-by: compilade --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index a7e800af1..6897f9c68 100644 --- a/llama.cpp +++ b/llama.cpp @@ -17342,7 +17342,7 @@ float * llama_get_embeddings(struct llama_context * ctx) { return ctx->embd; } -static float * llama_get_embeddings_ith_fail(int i, std::string reason) { +static float * llama_get_embeddings_ith_fail(int i, const std::string & reason) { LLAMA_LOG_ERROR("%s: invalid embeddings id %d, reason: %s\n", __func__, i, reason.c_str()); #ifndef NDEBUG GGML_ASSERT(false);