django_openailite
Instructions
Install this github project only
- cd django;
- python3.11 -m venv env
- source env/bin/activate
- pip install --upgrade pip
- pip install -r requirements.txt
- Note that openai==1.73.0 is with model gpt-4o-mini is used. Other combinations may fail since the assistants api seems to change daily.
Get OPENAI_API_KEY
- Visit https://openai.com , establis an account, and login to the API platform
- You do not need a ChatGPT account, but you must have a paid openai account. It is pay as you go and putting $10 in will allow you to test
- Create an API key, copy it and create the environment variable
- OPENAI_API_KEY=xxxxxxxx
Run
- python manage.py makemigrations
- python manage.py migrate
- python manage.py createsuperuser
- python manage.py runserver
- visit http://localhost:8000
Test
- pytest is slow, so to make sure you see what is happening flag with -s to see prints statements
- pytest -s
- python manage.py runserver
- Then check the admin pages to add files, vector_stores, assistants and threads.
Build
- cd src
- python -m build
Release files for django-ragamuffin 3.6.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_ragamuffin-3.6.0.6.tar.gz | 71.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_ragamuffin-3.6.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 159.5 kB
Release files / django_ragamuffin-3.6.0.6.tar.gz
| Download URL | django_ragamuffin-3.6.0.6.tar.gz |
|---|---|
| Size | 71.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2867b94493e15c34f59c1d0a96f4d02a573d3d91bca3d6b00283ed2e1ca158d2
|
|
BLAKE2b-256 checksum How to use checksums |
4a479c30017535f956a63b3ce56f1d4841182886149fc5cbcb5843937b101919
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / django_ragamuffin-3.6.0.6-py3-none-any.whl
| Download URL | django_ragamuffin-3.6.0.6-py3-none-any.whl |
|---|---|
| Size | 87.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b67cdf7684087f96b812a104ea8d953dc7eec9f2d2ea9f2e0069602b308f7bf5
|
|
BLAKE2b-256 checksum How to use checksums |
9b93663621453c103ae1bc4ca969d8f24a25277260f024714cf180b266e30c94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|