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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_ragamuffin-3.6.0.5.tar.gz
(63.7 kB
view details)
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 django_ragamuffin-3.6.0.5.tar.gz.
File metadata
- Download URL: django_ragamuffin-3.6.0.5.tar.gz
- Upload date:
- Size: 63.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f14cb12c4b3b3946b1b70e2fb6a369b2bfdfcdf3a0ae9a31f9ee10be77712e10
|
|
| MD5 |
853970e13db8a76bc243e957fe9bf89a
|
|
| BLAKE2b-256 |
d20c57cf38db04bad50d084b06c4f29e296827a62232e5b72ffbe38341f42064
|
File details
Details for the file django_ragamuffin-3.6.0.5-py3-none-any.whl.
File metadata
- Download URL: django_ragamuffin-3.6.0.5-py3-none-any.whl
- Upload date:
- Size: 77.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c4a02ce4248153e67db923c2de3cf328e3e32981ce820724d2f7ec989d02d96
|
|
| MD5 |
db09eaf4dd3407cdb57ce656fd2572b2
|
|
| BLAKE2b-256 |
25d96a0908876c7c9ea1ea0f04e6b103ef3c6cd9c12591cb73e75170513f31a8
|