Skip to content

Commit 50901d6

Browse files
committed
v2.0.0
1 parent 6c10d30 commit 50901d6

File tree

304 files changed

+32417
-7612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+32417
-7612
lines changed

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": [
3+
[
4+
"next/babel",
5+
{
6+
"preset-env": {
7+
"targets": {
8+
"browsers": ["> 0.25%, not dead"]
9+
}
10+
}
11+
}
12+
]
13+
]
14+
}

.dockerignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.env.template

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
# Your openai api key. (required)
3+
OPENAI_API_KEY=sk-xxxx
4+
5+
# Access passsword, separated by comma. (optional)
6+
CODE=your-password
7+
8+
# You can start service behind a proxy
9+
PROXY_URL=http://localhost:7890
10+
11+
# Override openai api request base url. (optional)
12+
# Default: https://api.openai.com
13+
# Examples: http://your-openai-proxy.com
14+
BASE_URL=
15+
16+
# Specify OpenAI organization ID.(optional)
17+
# Default: Empty
18+
OPENAI_ORG_ID=
19+
20+
# (optional)
21+
# Default: Empty
22+
# If you do not want users to use GPT-4, set this value to 1.
23+
DISABLE_GPT4=
24+
25+
# (optional)
26+
# Default: Empty
27+
# If you do not want users to input their own API key, set this value to 1.
28+
HIDE_USER_API_KEY=
29+
30+
# (optional)
31+
# Default: Empty
32+
# If you do want users to query balance, set this value to 1.
33+
ENABLE_BALANCE_QUERY=
34+
35+
# (optional)
36+
# Default: Empty
37+
# If you want to disable parse settings from url, set this value to 1.
38+
DISABLE_FAST_LINK=

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
public/serviceWorker.js

.eslintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "next/core-web-vitals",
3+
"plugins": ["prettier"]
4+
}

.github/README.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<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" />
55
</a>
66

7-
<strong> <a href="https://github.com/Em1tSan/NeuroGPT/blob/main/.github/README_RU.md">Русский</a> | English </strong>
8-
97
Your API access to ChatGPT.
108

119
</div>
@@ -18,15 +16,6 @@ Your API access to ChatGPT.
1816
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#windows">
1917
<img src="https://img.shields.io/badge/-Windows-1371c3?logo=windows" alt="windows"/>
2018
</a>
21-
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#linux">
22-
<img src="https://img.shields.io/badge/-Linux-F1502F?logo=linux" alt="linux"/>
23-
</a>
24-
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#macos">
25-
<img src="https://img.shields.io/badge/-MacOS-C0BFC0?logo=apple" alt="macos"/>
26-
</a>
27-
<a href="https://github.com/Em1tSan/NeuroGPT/wiki/PC-client-installation#portable-version">
28-
<img src="https://img.shields.io/badge/-Portable version-8080ff?logo=portable" alt="portable"/>
29-
</a>
3019
<br/>
3120

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

9988
# About NeuroGPT
100-
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>.
89+
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>.
10190

102-
- Web search
10391
- Dialog context
10492
- Dialog history
10593
- Setting generation parameters for GPT models
10694
- Built-in prompt templates and jailbreaks for various tasks
10795

108-
<img src="https://github.com/NealBelov/screenshots/blob/main/demo001.gif?raw=true" width="100%">
109-
11096
***
11197
<div align="center">
11298

11399
[![Star History Chart](https://api.star-history.com/svg?repos=Em1tSan/NeuroGPT&type=Date)](https://star-history.com/#Em1tSan/NeuroGPT&Date)
114100
</div>
101+
102+
# LICENSE
103+
[MIT](https://opensource.org/license/mit/)

.gitignore

Lines changed: 34 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -1,152 +1,46 @@
1-
# Byte-compiled / optimized / DLL files
2-
__pycache__/
3-
*.py[cod]
4-
*$py.class
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
52

6-
# C extensions
7-
*.so
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
87

9-
# Distribution / packaging
10-
.Python
11-
build/
12-
develop-eggs/
13-
dist/
14-
downloads/
15-
eggs/
16-
.eggs/
17-
lib/
18-
lib64/
19-
parts/
20-
sdist/
21-
var/
22-
wheels/
23-
pip-wheel-metadata/
24-
share/python-wheels/
25-
*.egg-info/
26-
.installed.cfg
27-
*.egg
28-
MANIFEST
29-
history/
30-
index/
8+
# testing
9+
/coverage
3110

32-
# PyInstaller
33-
# Usually these files are written by a python script from a template
34-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
35-
*.manifest
36-
*.spec
11+
# next.js
12+
/.next/
13+
/out/
3714

38-
# Installer logs
39-
pip-log.txt
40-
pip-delete-this-directory.txt
15+
# production
16+
/build
4117

42-
# Unit test / coverage reports
43-
htmlcov/
44-
.tox/
45-
.nox/
46-
.coverage
47-
.coverage.*
48-
.cache
49-
nosetests.xml
50-
coverage.xml
51-
*.cover
52-
*.py,cover
53-
.hypothesis/
54-
.pytest_cache/
18+
# misc
19+
.DS_Store
20+
*.pem
5521

56-
# Translations
57-
*.mo
58-
*.pot
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
.pnpm-debug.log*
5927

60-
# Django stuff:
61-
*.log
62-
local_settings.py
63-
db.sqlite3
64-
db.sqlite3-journal
28+
# local env files
29+
.env*.local
6530

66-
# Flask stuff:
67-
instance/
68-
.webassets-cache
31+
# vercel
32+
.vercel
6933

70-
# Scrapy stuff:
71-
.scrapy
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts
37+
dev
7238

73-
# Sphinx documentation
74-
docs/_build/
75-
76-
# PyBuilder
77-
target/
78-
79-
# Jupyter Notebook
80-
.ipynb_checkpoints
81-
82-
# IPython
83-
profile_default/
84-
ipython_config.py
85-
86-
# pyenv
87-
.python-version
88-
89-
# pipenv
90-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
92-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
93-
# install all needed dependencies.
94-
#Pipfile.lock
95-
96-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
97-
__pypackages__/
98-
99-
# Celery stuff
100-
celerybeat-schedule
101-
celerybeat.pid
102-
103-
# SageMath parsed files
104-
*.sage.py
105-
106-
# Environments
107-
.venv
108-
env/
109-
venv/
110-
ENV/
111-
env.bak/
112-
venv.bak/
113-
python/
114-
git/
115-
history/
116-
117-
118-
# Spyder project settings
119-
.spyderproject
120-
.spyproject
121-
122-
# Rope project settings
123-
.ropeproject
124-
125-
# mkdocs documentation
126-
/site
127-
128-
# mypy
129-
.mypy_cache/
130-
.dmypy.json
131-
dmypy.json
132-
133-
# Pyre type checker
134-
.pyre/
135-
136-
# Mac system file
137-
**/.DS_Store
138-
139-
#vscode
14039
.vscode
141-
142-
# 配置文件/模型文件
143-
api_key.txt
144-
config.json
145-
auth.json
146-
.models/
147-
lora/
14840
.idea
149-
templates/*
150-
code_improver.yaml
151-
.history
152-
config.json
41+
42+
# docker-compose env files
43+
.env
44+
45+
*.key
46+
*.key.pub

.lintstagedrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"./app/**/*.{js,ts,jsx,tsx,json,html,css,md}": [
3+
"eslint --fix",
4+
"prettier --write"
5+
]
6+
}

.prettierrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
printWidth: 80,
3+
tabWidth: 2,
4+
useTabs: false,
5+
semi: true,
6+
singleQuote: false,
7+
trailingComma: 'all',
8+
bracketSpacing: true,
9+
arrowParens: 'always',
10+
};

0 commit comments

Comments
 (0)