Skip to content

paulplee/janai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

janai

JanAI is a janitor for OpenAI objects. To help me maintain and clean up the mess of objects I created.

How to run

  1. pip -m venv <myenv>
  2. source <myenv>/bin/activate
  3. pip install -r requirements
  4. Add the OpenAI API key and relevant project ID's to .env
  5. streamlit run Home.py

Sample .env file:

OPENAI_API_KEY=sk-xxxxxxxxxx
PROJECT_ONE=proj_xxxxxxxx
OPENAI_PROJECT_ID=${PROJECT_ONE}

Streamlit VSCode debugging

Add the following configuration to the launch.json. Make the proper adjustments for your own "program" path.

{
    "version": "0.2.0",
    "configurations": [
    
        {
            "name": "Python Debugger: JanAI",
            "type": "debugpy",
            "request": "launch",
            "program": "${cwd}/.venv_janai/lib/python3.12/site-packages/streamlit",
            "console": "integratedTerminal",
            "justMyCode": true,
            "args": [
                "run",
                "Home.py"
            ],
        }
    ]
}

About

JanAI is a janitor for OpenAI objects. To help me maintain and clean up the mess of objects I created.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages