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.1.tar.gz
(61.2 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.1.tar.gz.
File metadata
- Download URL: django_ragamuffin-3.6.0.1.tar.gz
- Upload date:
- Size: 61.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b660b3c370e7a5751163faf6350945a9697285e89c12f5338d2e62cc6e5c2945
|
|
| MD5 |
c8ecb7e93d07327c6ddaf8e5b59608db
|
|
| BLAKE2b-256 |
4151c1694c729581cc783bf00bb04655ae5d7ac851f16998a504a02f0df867d6
|
File details
Details for the file django_ragamuffin-3.6.0.1-py3-none-any.whl.
File metadata
- Download URL: django_ragamuffin-3.6.0.1-py3-none-any.whl
- Upload date:
- Size: 74.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5107e2d9b6afb0ea60d173500333a467dcd155791eadbd4ccee3c9c97d7aea5
|
|
| MD5 |
f497aaf3dbf0b6525859ac17349fae07
|
|
| BLAKE2b-256 |
66dd2374e5d70db9cdc12b529f60bc991286fd8fca5de40610e0314cfa078cc6
|