summaryrefslogtreecommitdiffstats
path: root/llm.h
diff options
context:
space:
mode:
Diffstat (limited to 'llm.h')
-rw-r--r--llm.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/llm.h b/llm.h
new file mode 100644
index 0000000..dfe5c39
--- /dev/null
+++ b/llm.h
@@ -0,0 +1,11 @@
+#ifndef LLM_H
+#define LLM_H
+
+#include "llama.h"
+
+struct llm_ctx;
+struct llm_ctx *llm_init(const char *model_path);
+void llm_run(struct llm_ctx *ctx, const char *prompt, FILE *out);
+void llm_free(struct llm_ctx *ctx);
+
+#endif /* LLM_H */