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.99.0.1.tar.gz (52.1 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.99.0.1-py3-none-any.whl (72.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_ragamuffin-1.99.0.1.tar.gz
Algorithm Hash digest
SHA256 57fd98ac97c94fe33abdfc4402cd0737575a1320541a1573c4be5698f43bed97
MD5 a8e80d80789603805e41d301c26cea31
BLAKE2b-256 45fb46110be745a7051e5dcc635d530f432180c9390724d87e89fe359940d519

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_ragamuffin-1.99.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a0d413f23637ea6221d7b1a3683179663616a530f44a40e1c64dd44e9438cbc0
MD5 d5b59ad0533ec323ffc9e683f812d91a
BLAKE2b-256 d1e1276be93fd1423a4e215a62e8015dd84f5762a8632a71b61ef2183825a1f9

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