Skip to main content

A Django app for ...

Project description

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

Project details


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-1.107.1.16.tar.gz (56.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_ragamuffin-1.107.1.16-py3-none-any.whl (69.1 kB view details)

Uploaded Python 3

File details

Details for the file django_ragamuffin-1.107.1.16.tar.gz.

File metadata

  • Download URL: django_ragamuffin-1.107.1.16.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.1

File hashes

Hashes for django_ragamuffin-1.107.1.16.tar.gz
Algorithm Hash digest
SHA256 809b26f689cb55117b6cfee7c1d1a181a1405d9e1fcbc5261239efc5bcafff6f
MD5 b814dfc454c8d0b904f5d78a6ff540f1
BLAKE2b-256 d61398a1a2cc37fae15cd2ea6402fa2c241c6a6c977fd8c7addd28a869294c5d

See more details on using hashes here.

File details

Details for the file django_ragamuffin-1.107.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for django_ragamuffin-1.107.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0ad431bb06f5b2327486f59ab1e6c21671657b57220c556e22332957a99e2a
MD5 01814ca7c2ded781e3a441b9fd305822
BLAKE2b-256 0b2ebcca0b4b0a40b800b7728c601bf6f40dfa98f71541fe9230b958befa6105

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page