Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
neurogen-dev committed Nov 28, 2023
1 parent 6c10d30 commit 50901d6
Show file tree
Hide file tree
Showing 304 changed files with 32,417 additions and 7,612 deletions.
14 changes: 14 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"presets": [
[
"next/babel",
{
"preset-env": {
"targets": {
"browsers": ["> 0.25%, not dead"]
}
}
}
]
]
}
12 changes: 0 additions & 12 deletions .dockerignore

This file was deleted.

38 changes: 38 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

# Your openai api key. (required)
OPENAI_API_KEY=sk-xxxx

# Access passsword, separated by comma. (optional)
CODE=your-password

# You can start service behind a proxy
PROXY_URL=http://localhost:7890

# Override openai api request base url. (optional)
# Default: https://api.openai.com
# Examples: http://your-openai-proxy.com
BASE_URL=

# Specify OpenAI organization ID.(optional)
# Default: Empty
OPENAI_ORG_ID=

# (optional)
# Default: Empty
# If you do not want users to use GPT-4, set this value to 1.
DISABLE_GPT4=

# (optional)
# Default: Empty
# If you do not want users to input their own API key, set this value to 1.
HIDE_USER_API_KEY=

# (optional)
# Default: Empty
# If you do want users to query balance, set this value to 1.
ENABLE_BALANCE_QUERY=

# (optional)
# Default: Empty
# If you want to disable parse settings from url, set this value to 1.
DISABLE_FAST_LINK=
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public/serviceWorker.js
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "next/core-web-vitals",
"plugins": ["prettier"]
}
19 changes: 4 additions & 15 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
<img src="https://readme-typing-svg.herokuapp.com?font=Jura&weight=700&size=30&duration=4000&pause=1000&color=1BED29&center=true&width=435&lines=NeuroGPT+by+NeuroAI" alt="NeuroGPT" />
</a>

<strong> <a href="https://github.com/Em1tSan/NeuroGPT/blob/main/.github/README_RU.md">Русский</a> | English </strong>

Your API access to ChatGPT.

</div>
Expand All @@ -18,15 +16,6 @@ Your API access to ChatGPT.
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#windows">
<img src="https://img.shields.io/badge/-Windows-1371c3?logo=windows" alt="windows"/>
</a>
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#linux">
<img src="https://img.shields.io/badge/-Linux-F1502F?logo=linux" alt="linux"/>
</a>
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#macos">
<img src="https://img.shields.io/badge/-MacOS-C0BFC0?logo=apple" alt="macos"/>
</a>
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#portable-version">
<img src="https://img.shields.io/badge/-Portable version-8080ff?logo=portable" alt="portable"/>
</a>
<br/>

<a href="https://t.me/neuro_api">
Expand Down Expand Up @@ -97,18 +86,18 @@ We currently support the following models:
[Telegram](https://t.me/neuro_api)

# About NeuroGPT
PC app configured to use ChatGPT with [our API](https://github.com/Em1tSan/NeuroGPT#about-neuroapi). Based on <a href="https://github.com/GaiZhenbiao/ChuanhuChatGPT">ChuanhuChatGPT</a>.
PC app configured to use ChatGPT with [our API](https://github.com/Em1tSan/NeuroGPT#about-neuroapi). Based on <a href="https://github.com/Yidadaa/ChatGPT-Next-Web">ChatGPT Next Web</a>.

- Web search
- Dialog context
- Dialog history
- Setting generation parameters for GPT models
- Built-in prompt templates and jailbreaks for various tasks

<img src="https://github.com/NealBelov/screenshots/blob/main/demo001.gif?raw=true" width="100%">

***
<div align="center">

[![Star History Chart](https://api.star-history.com/svg?repos=Em1tSan/NeuroGPT&type=Date)](https://star-history.com/#Em1tSan/NeuroGPT&Date)
</div>

# LICENSE
[MIT](https://opensource.org/license/mit/)
174 changes: 34 additions & 140 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,152 +1,46 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# C extensions
*.so
# dependencies
/node_modules
/.pnp
.pnp.js

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
history/
index/
# testing
/coverage

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# next.js
/.next/
/out/

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# production
/build

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
# misc
.DS_Store
*.pem

# Translations
*.mo
*.pot
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# local env files
.env*.local

# Flask stuff:
instance/
.webassets-cache
# vercel
.vercel

# Scrapy stuff:
.scrapy
# typescript
*.tsbuildinfo
next-env.d.ts
dev

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
python/
git/
history/


# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# Mac system file
**/.DS_Store

#vscode
.vscode

# 配置文件/模型文件
api_key.txt
config.json
auth.json
.models/
lora/
.idea
templates/*
code_improver.yaml
.history
config.json

# docker-compose env files
.env

*.key
*.key.pub
6 changes: 6 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"./app/**/*.{js,ts,jsx,tsx,json,html,css,md}": [
"eslint --fix",
"prettier --write"
]
}
10 changes: 10 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
trailingComma: 'all',
bracketSpacing: true,
arrowParens: 'always',
};
Loading

0 comments on commit 50901d6

Please sign in to comment.