This is a Django backend to use with the NextJS frontend to interact with various AI models.
$ python3 -m venv venv/
$ .\venv\Scripts\python.exe -m pip install -r requirements.txt
$ .\venv\Scripts\python.exe .\manage.py runserver
$ ./venv/bin/python -m pip install -r requirements.txt
$ ./venv/bin/python ./manage.py runserver
| Endpoint | Purpose | Method | Data | Response |
|---|---|---|---|---|
/api/list_models | To list the current models accessible via the API | GET | N/A | {"models":[<list of model identifiers>]} |
/api/use_model | To utilise an accesible model | POST | {"model":"model-name-from-list","data":"text-data-to-check"} | {"parsed_response": {"ishateful": <bool>}, "raw_response": "<raw model response>"} |
Made by sealldeveloper / sealldev
1 commits
Python
100.0%
This is a Django backend to use with the NextJS frontend to interact with various AI models.
$ python3 -m venv venv/
$ .\venv\Scripts\python.exe -m pip install -r requirements.txt
$ .\venv\Scripts\python.exe .\manage.py runserver
$ ./venv/bin/python -m pip install -r requirements.txt
$ ./venv/bin/python ./manage.py runserver
| Endpoint | Purpose | Method | Data | Response |
|---|---|---|---|---|
/api/list_models | To list the current models accessible via the API | GET | N/A | {"models":[<list of model identifiers>]} |
/api/use_model | To utilise an accesible model | POST | {"model":"model-name-from-list","data":"text-data-to-check"} | {"parsed_response": {"ishateful": <bool>}, "raw_response": "<raw model response>"} |
Made by sealldeveloper / sealldev
1 commits
Python
100.0%