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
Metadata
Release files for django-ragamuffin 3.6.0.7
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.7.tar.gz | 68.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_ragamuffin-3.6.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 152.7 kB
Release files / django_ragamuffin-3.6.0.7.tar.gz
| Download URL | django_ragamuffin-3.6.0.7.tar.gz |
|---|---|
| Size | 68.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
490f1ddf9e6fe2cb5cea1368822e64eb719bc3ff62b59dfe69dfdf1017134973
|
|
BLAKE2b-256 checksum How to use checksums |
32c32fa6d22822ee7f77ce056cc1448e3c7b697c826046286e371947a5de9d10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / django_ragamuffin-3.6.0.7-py3-none-any.whl
| Download URL | django_ragamuffin-3.6.0.7-py3-none-any.whl |
|---|---|
| Size | 83.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c5706d37d29a512b4988d9298fcff54fad1e8bc8739da101382e60ac50831d1
|
|
BLAKE2b-256 checksum How to use checksums |
23fc8e04eba0353db5302c1366aca96f16690be97abf89708c00397cce923fca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|