diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 13:26:22 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-02-18 13:26:22 +0100 |
| commit | a123d9f1ebebb6ad20155285c9457a6d6a5c7a61 (patch) | |
| tree | 6b446b9b24a3d076e9eeb1a79d1bd67d7e59e7a5 /npc.c | |
| parent | 4c133f6e6345e3ee7df50d5cacea4393bc3e389a (diff) | |
| download | llmnpc-a123d9f1ebebb6ad20155285c9457a6d6a5c7a61.tar.gz | |
Cleanup and refactor
Diffstat (limited to 'npc.c')
| -rw-r--r-- | npc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,7 +11,7 @@ #include <string.h> #include <getopt.h> -#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(); |
