summaryrefslogtreecommitdiffstats
path: root/llm.h
diff options
context:
space:
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 */