Skip to content

cl-trier/TWON-Agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TWON: Agents - Generative Agent through LLMs

The repository contains a REST API to inference with generative agents in a social media thread. The agents are powered by large language models through Hugging Face and OpenAi.

Note: Currently, the work is an alpha version and will undergo breaking changes during the development.

Project Setup

# install Python requirements
make install

# update local repository and restart server
make update

# start with hot-reload for development
make dev

# start for production
make serve

# run unit tests
make test

dotenv

The API assumes a valid Hugging Face and OpenAi API token inside the project repository in a dotenv file.

HF_TOKEN="hf_XXXXXXXXXXXXXXXXX"
OPENAI_API_KEY="sk-XXXXXXXXXXXXXXXXX"

Usage

todo