LLAMPHouse OpenAI Assistant Server
Project description
Introduction
LLAMPHouse core Python package.
This packages creates a server that mimics the OpenAI Assistant behavior. However, you can fully customize the run behavior yourself.
Included API endpoints
- Assistants
Create-> created in code- List
- Retrieve
Modify-> only in codeDelete-> only in code
- Threads
- Create
- Retrieve
- Modify
- Delete
- Messages
- Create
- List
- Retrieve
- Modify
- Delete
- Runs
- Create
- Create thread and run
- List
- Retrieve
- Modify
- Submit tool outputs
- Cancel
- Run steps
- List
- Retrieve
- Vector stores
- Create -> depends on implementation
- List
- Retrieve
- Modify
- Delete -> depends on implementation
- Vector store files
- Create
- List
- Retrieve
- Delete
- Vector store file batches
- Create
- Retrieve
- Cancel
- List
- Streaming
- Message delta
- Run step object
- Assistant stream
Installation
Local
- Clone the repository
- Install the library
pip install .
Build
This is only required if you want to push the package to PyPi.
python setup.py sdist bdist_wheelgit tag -a v1.0.0 -m "Release version 1.0.0"git push
Testing
- Build/Install the latest solution locally
- Run the test:
pytest
Database
To run a local database:
docker run --rm -d --name postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -p 5432:5432 postgresdocker exec -it postgres psql -U postgres -c 'CREATE DATABASE llamphouse;'
To create a new database revision: alembic revision --autogenerate -m "Added account table"
To upgrade the database with the latest revision: alembic upgrade head
To downgrade back to the base version: alembic downgrade base
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llamphouse-0.0.5.tar.gz.
File metadata
- Download URL: llamphouse-0.0.5.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38c6ea438edecc7ea528a88f508fa8d0df6619662f49232b9cd7904530dde561
|
|
| MD5 |
d2f3bbe7bd89198abf1e78e4cb85f6f2
|
|
| BLAKE2b-256 |
9f26d469e2bbe21849909c9bbc7d710dd6fd7dbffbd9c288cad4dfd60bb96bb1
|
File details
Details for the file llamphouse-0.0.5-py3-none-any.whl.
File metadata
- Download URL: llamphouse-0.0.5-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
962144c08acb1f6afb2549b45225c4e821794159b87ef7a7677d099d7595daab
|
|
| MD5 |
43ad0063a6b7234422cb145ec7f879c6
|
|
| BLAKE2b-256 |
6a79e806762e801e0532fcc3e1ea354c0799c934e099d738fb583e4f507385d8
|