Skip to content

Latest commit

 

History

History
 
 

python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Python Bindings

ctypes FFI bindings to cactus_engine.h.

Integration

cactus build --python
pip install -e python/

Usage

from cactus.bindings import cactus

model = cactus.cactus_init("/path/to/model", None, False)
response = cactus.cactus_complete(model, messages_json, None, None, None)
cactus.cactus_destroy(model)