From a123d9f1ebebb6ad20155285c9457a6d6a5c7a61 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 18 Feb 2026 13:26:22 +0100 Subject: Cleanup and refactor --- npc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'npc.c') diff --git a/npc.c b/npc.c index 01c980c..5450866 100644 --- a/npc.c +++ b/npc.c @@ -11,7 +11,7 @@ #include #include -#include "system_prompt.h" +#include "prompts/lotr.h" static void llama_log_callback(enum ggml_log_level level, const char *text, void *user_data) { (void)level; @@ -54,13 +54,13 @@ static int execute_prompt_with_context(const ModelConfig *cfg, const char *promp return 1; } - char *system_prefix = (char *)malloc(system_prompt_txt_len + 1); + char *system_prefix = (char *)malloc(prompts_lotr_txt_len + 1); if (system_prefix == NULL) { log_message(stderr, LOG_ERROR, "Failed to allocate system prompt"); return 1; } - memcpy(system_prefix, system_prompt_txt, system_prompt_txt_len); - system_prefix[system_prompt_txt_len] = '\0'; + memcpy(system_prefix, prompts_lotr_txt, prompts_lotr_txt_len); + system_prefix[prompts_lotr_txt_len] = '\0'; ggml_backend_load_all(); -- cgit v1.2.3