summaryrefslogtreecommitdiffstats
path: root/llm.h
diff options
context:
space:
mode:
authorSadeep Madurange <sadeep@asciimx.com>2026-08-15 09:06:23 +0800
committerSadeep Madurange <sadeep@asciimx.com>2026-08-15 11:20:47 +0800
commit052a27dc3605d4a81ff3424da781ed176cba4c6d (patch)
tree160b65b164dc19f7391f6f3f82dac3a0a41afb96 /llm.h
parent511ddc6ef674fd5383fb035e1db8595724b2d3c6 (diff)
downloadlex-052a27dc3605d4a81ff3424da781ed176cba4c6d.tar.gz
Add daemon mode.
Diffstat (limited to 'llm.h')
-rw-r--r--llm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/llm.h b/llm.h
new file mode 100644
index 0000000..5bec282
--- /dev/null
+++ b/llm.h
@@ -0,0 +1,13 @@
+#ifndef LLM_H
+#define LLM_H
+
+#include "llama.h"
+
+struct llama_model *llm_init(const char *model_path);
+
+void llm_process_request(struct llama_model *model,
+ const char *user_prompt, FILE *out);
+
+void llm_free(struct llama_model *model);
+
+#endif /* LLM_H */