Kattenelvis / flowback_ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project first requires that you've installed Flowback backend. A setup can be found here https://github.com/Gofven/flowback-setup-docker

Git clone this project in flowback-backend/flowback_addon

python3 -m venv venv
source venv/bin/activate
pip install openai

cd ../../
pip install openai


Seems to work for some reason, even if the second pip install 


Make sure that flowback_addon/urls.py (NOT flowback_ai/urls.py) includes the following:

from django.urls import path, include

from flowback_addon.flowback_ai.urls import ai_patterns

addon_patterns = [
     path('ai/', include((ai_patterns, 'ai')))
]


Also ensure that the environmental variable in main flowback-backend repo is set to
OPENAI_API_KEY=<api-key> 

Where <api-key> is your private key generated and paid for at https://platform.openai.com/api-keys

In flowback-frontend, to access the buttons for the generators you put
VITE_FLOWBACK_AI_MODULE = TRUE

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%