feat: add prompt and system methods to rpylib.c and remove free build from Makefile

- Added rpylib_prompt and rpylib_system functions to rpylib.c for user and system role OpenAI chat
- Removed build_free target from Makefile and added publish step for rpylib.so build
This commit is contained in:
2025-03-20 03:13:26 +00:00
parent 4fed366425
commit 1bc92e5834
2 changed files with 26 additions and 6 deletions
+2 -5
View File
@@ -1,4 +1,4 @@
all: build run
all: build build_rpylib run
# Variables for compiler and flags
CC = gcc
@@ -9,12 +9,9 @@ build:
$(CC) main.c $(CFLAGS) -o r
publish r
build_free:
$(CC) main.c -DFREE_VERSION $(CFLAGS) -o rf
publish rf
build_rpylib:
$(CC) -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl
publish rpylib.so
run:
./r