Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/TavernAI/TavernAI
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkEngine2023 committed Jan 7, 2024
2 parents a141ccb + 6280f7a commit 130ba2b
Show file tree
Hide file tree
Showing 18 changed files with 1,029 additions and 22 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
node_modules/
uploads/
readme/
public/chats/
public/characters/
public/setings.json
config.conf
!public/chats/City Explorer (Story)/1687599323821.jsonl
!public/characters/Aqua.png
!public/characters/City Explorer (Story).png
!public/characters/Darkness.png
!public/characters/Megumin.png
!public/characters/folders.json
!public/backgrounds/cozynight.png
!public/backgrounds/getrest.png
!public/backgrounds/kingdom.png
!public/backgrounds/market.png
!public/backgrounds/noble1.png
!public/backgrounds/noble2.png
!public/backgrounds/ocean.png
!public/backgrounds/outdoor.png
!public/backgrounds/smokycity.png
!public/backgrounds/summer.png
!public/backgrounds/tavern.png
!public/backgrounds/theredlake.png
!public/backgrounds/warmtown.png
!public/backgrounds/waterflow.png
!public/backgrounds/whitesnow.png
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
https://discord.gg/zmK2gmr45t.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
Binary file modified CONSOLE.lnk
Binary file not shown.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:19.1.0-alpine3.16
FROM node:21.5.0-alpine3.19

# Arguments
ARG APP_HOME=/home/node/app
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 TavernAI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 2 additions & 2 deletions Start.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cmd /c PowerShell -NoExit -Command "& {.\Start.ps1}"
cmd /c PowerShell -ExecutionPolicy Unrestricted -Command " {dir | Unblock-File}"
cmd /c PowerShell -ExecutionPolicy Unrestricted -NoExit -Command "& {.\Start.ps1}"
Pause

Binary file modified TAVERN_CONSOLE.lnk
Binary file not shown.
127 changes: 127 additions & 0 deletions colab/API-ONLY_for_node.js_local-TavernAI_v0.98RC.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"private_outputs": true,
"provenance": [],
"gpuType": "T4",
"cell_execution_strategy": "setup",
"authorship_tag": "ABX9TyOch3RKsWcDWGq75hKfuVHT",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
},
"accelerator": "GPU"
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/TavernAI/TavernAI/blob/quickdev/colab/API-ONLY_for_node.js_local-TavernAI_v0.97BETA.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"source": [
"# @title { run: \"auto\", form-width: \"110%\", display-mode: \"form\" }\n",
"#@markdown\n",
"%%html --isolated\n",
"<audio autoplay=\"\" loop src=\"https://tavernai.xyz/silence.m4a\"></audio><video autoplay=\"\" src=\"https://tavernai.xyz/NFM.Colab.WAIT.mp4\" controls></video><br><h1><b>Now...&nbsp&nbsp&nbspWAIT...&nbsp&nbsp&nbsp&nbsp--FunkEngine</b></h1>"
],
"metadata": {
"id": "LG58x0USTVOA",
"collapsed": true
},
"execution_count": null,
"outputs": []
},
{
"cell_type": "markdown",
"source": [
"# Select a model from, or paste your desired model **into** the menu.\n",
"# ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓\n",
"# --RUN THE CELL--\n",
"# ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓"
],
"metadata": {
"id": "CHfRyPxyDuND"
}
},
{
"cell_type": "code",
"source": [
"# @title <b>KoboldAI</b> { form-width: \"110%\", display-mode: \"form\" }\n",
"SECRET_TUNNEL = False # @param {type:\"boolean\"}\n",
"Model = \"NeverSleep/Noromaid-13b-v0.1.1\" # @param [\"NeverSleep/Noromaid-13b-v0.1.1\", \"NeverSleep/Nethena-13B\", \"FunkEngine/SchweinZwei-13b\", \"FunkEngine/FunkEngine-6B\", \"Xwin-LM/Xwin-LM-7B-V0.1\", \"Undi95/Nete-13B\", \"KoboldAI/OPT-13B-Erebus\", \"####↓↓WHY↓↓DO↓↓YOU↓↓USE↓↓THESE?####\", \"KoboldAI/OPT-6B-nerys-v2\", \"KoboldAI/OPT-6.7B-Erebus\", \"KoboldAI/OPT-6.7B-Nerybus-Mix\", \"####2019↓↓CALLED↓↓THEY↓↓WANT↓↓THEIR↓↓MODELS↓↓BACK####\", \"KoboldAI/OPT-2.7B-Erebus\"] {allow-input: true}\n",
"\n",
"# FunkEngine's implementation©\n",
"\n",
"# KoboldAI mostly by Henky!!©\n",
"\n",
"import os\n",
"os.chdir('/')\n",
"!!rm -rf /content/sample_data/\n",
"!!nvidia-smi -pm 1\n",
"!!nvidia-smi -pl 69\n",
"!!nvidia-smi -c 3\n",
"os.chdir('/content/')\n",
"\n",
"if SECRET_TUNNEL:\n",
" from google.colab import userdata\n",
" print(\"Do you have static tunnel infrastructure ready to use?\")\n",
" kobotoke = userdata.get('COLABKOBOLDSEC')\n",
" if kobotoke != '':\n",
" print(\"It would seem you are on the upper end of the bell-curve...\")\n",
" !!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb\n",
" print(\"Using provided token hashes to plumb into your tunnel infrastructure.\")\n",
" !!sudo dpkg -i cloudflared-linux-amd64.deb\n",
" print(\"Cloudflared installed properly, ready to deploy!\")\n",
" if kobotoke != '':\n",
" print(\"Looks like you have given us a token for tunneling KoboldAI's API out...\")\n",
" !!nohup cloudflared tunnel --no-autoupdate run --token $kobotoke &\n",
" print(\"Connector is up and running... For KoboldAI...\")\n",
" print(\"Tunnels plumbed in should be good to go now...\")\n",
"else:\n",
" print(\"So you like copying and pasting new links every time... YDY I guess.. --FunkEngine\")\n",
"\n",
"if not os.path.exists(\"/content/KoboldAI\"):\n",
" !nvidia-smi\n",
" !!sudo nohup pip install typing >/dev/null\n",
" !!sudo nohup pip install --ignore-installed blinker==1.6.2\n",
" os.mkdir(\"/content/KoboldAI\")\n",
" !!git clone -b united https://github.com/henk717/KoboldAI /content/KoboldAI/\n",
" os.chdir('/content/KoboldAI')\n",
" !!git submodule update --init --recursive\n",
" !!pip install -r requirements.txt\n",
" !nvidia-smi\n",
"\n",
"if os.path.exists(\"/content/KoboldAI/\"):\n",
" os.chdir('/content/KoboldAI/')\n",
" if SECRET_TUNNEL:\n",
" print(\"REMINDER: YOU ARE USING YOUR PROVIDED TUNNEL CONNECTOR HERE. KoboldAI WILL NOT GIVE YOU AN API LINK. YOU ALREADY HAVE IT.\")\n",
" !!python3 aiserver.py --cacheonly --quiet --model $Model\n",
" if not SECRET_TUNNEL:\n",
" print(\"Lauunching KoboldAI and asking it to give you a regular old 'copy-and-paste-style' randomized-words API tunnel...\")\n",
" print(\"You must enjoy copying and pasting the links every time.\")\n",
" !!python3 aiserver.py --remote --cacheonly --quiet --model $Model\n",
"\n",
"print(\"Something has clearly gone terribly wrong if this appears in the output panel...\")\n"
],
"metadata": {
"id": "3OpDMFC5RFpc"
},
"execution_count": null,
"outputs": []
}
]
}
Loading

0 comments on commit 130ba2b

Please sign in to comment.