https://github.com/datashaman/legion
https://github.com/datashaman/legion
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/datashaman/legion
- Owner: datashaman
- Created: 2023-07-17T10:12:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-17T11:06:57.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T00:41:21.418Z (about 1 year ago)
- Language: PHP
- Size: 240 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# legion
Chat with OpenAI experts.
## installation
Create a repo using this as a template:
```
gh repo create legion --template datashaman/legion
```
Or clone the repository:
```
git clone https://github.com/datashaman/legion.git
```
## setup
```
cp .env.example .env
```
Set your `OPENAI_API_KEY` in `.env`, along with any other variables required, then:
```
composer install
php artisan migrate
```
Create a user:
```
php artisan user:create "myname" "myemail@example.com" "mypassword" --bio "My biography - used by avatar generator"
```
## run
```
php artisan serve
```
Navigate to `http://127.0.0.1:8000`, log in and create your first persona at `http://127.0.0.1/personas/create`.
## sources
The list of prompt templates come from [awesome chatgpt prompts](https://github.com/f/awesome-chatgpt-prompts/).
To regenerate the `resources/prompts.yml` file:
```
php artisan import-prompts
```