WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
8f01004
show more infomation
Jarvis73 May 11, 2023
f7549ef
fix: text wrap
May 13, 2023
7e69ca2
update feedback link
Jarvis73 May 16, 2023
f7fc1d6
fix: check `isComposing` for `Enter` key event
Jarvis73 Apr 29, 2023
366fa11
feature: enable invitation code
Jarvis73 Apr 29, 2023
5871f6b
lang: zh-CN update
Jarvis73 Apr 30, 2023
d551914
change MsgContent hidden to auto
May 17, 2023
6e87cfe
change MsgEditor Line Counts
May 17, 2023
fb43e16
fix: bugs after change MsgEditor Line Counts
May 18, 2023
5cb5eb0
feat: settings expansion panel
Jarvis73 May 18, 2023
c090897
fix: remove bottom blank line && ctrl+enter for new line
Jarvis73 May 18, 2023
03ae1d8
fix: mobile enter is new line
Jarvis73 May 18, 2023
7f443d9
fix: refresh page and lost conversationId
Jarvis73 May 20, 2023
834b293
correct input row calc
FengHZ May 21, 2023
5410308
correct input row calc
FengHZ May 21, 2023
2f3bcec
feat: Support cosplay mask and store
Jarvis73 May 22, 2023
ad3f00c
fix: color mode flash
Jarvis73 May 24, 2023
bd062e5
feat: responsive design (phone adaptation)
Jarvis73 May 26, 2023
2cd3646
fix: merge
Jarvis73 May 26, 2023
01d52b4
fix: font size
Jarvis73 May 26, 2023
20dbdb5
feat: better message actions && fix: delete error
Jarvis73 May 28, 2023
4249312
fix
Jarvis73 May 28, 2023
cc576f4
fix: set width to 100%
Jarvis73 May 29, 2023
5077894
fix: set max-width to 100%
Jarvis73 May 29, 2023
10ecfdf
feat: implement Retry
Jarvis73 May 30, 2023
4d8f9ab
fix: remove retry button when no messages
Jarvis73 May 30, 2023
3d26f7f
fix: scroll to user message instantly
Jarvis73 May 30, 2023
b935c5a
fix: stop conversation
Jarvis73 Jun 1, 2023
000b02d
fix: donot abort when stop
Jarvis73 Jun 1, 2023
49053cf
add EMAIL
FengHZ Jun 2, 2023
076d9b5
Merge branch 'main' of fenghz:Jarvis73/chatgpt-ui
FengHZ Jun 2, 2023
b51b89e
feat: reserve mask for every conversation
Jarvis73 Jun 8, 2023
71c39b1
feat: show model in toolbar
Jarvis73 Jun 9, 2023
6990364
fix: a bug in loadConversation JSON parse
Jarvis73 Jun 11, 2023
d0d1c98
feat: new model gpt-3.5-turbo-16k
Jarvis73 Jun 14, 2023
27f9493
fix: model parameters storage bug
Jarvis73 Jun 15, 2023
a266c3d
add 0613
FengHZ Jun 15, 2023
518fd98
currently pause azure
FengHZ Jun 15, 2023
a371a84
Merge branch 'main' of fenghz:Jarvis73/chatgpt-ui
FengHZ Jun 15, 2023
4c53769
change default models
FengHZ Jun 15, 2023
58b38ef
change inline code
FengHZ Jun 15, 2023
f97e919
add typographer
FengHZ Jun 15, 2023
d0e5996
calc code lines
FengHZ Jun 15, 2023
2902b8b
improve: better markdown title and line height
Jarvis73 Jun 16, 2023
445d763
debug linenumber
FengHZ Jun 16, 2023
427c227
Merge branch 'main' of fenghz:Jarvis73/chatgpt-ui
FengHZ Jun 16, 2023
9ed0efa
change linenumber
FengHZ Jun 16, 2023
d28bd3c
fix line number bug
FengHZ Jun 16, 2023
f7c44a4
change line number
FengHZ Jun 18, 2023
907ef89
fix all input bugs
FengHZ Jun 18, 2023
1eb3c02
change scroll bar
FengHZ Jun 18, 2023
23b8c83
feat: improve UI design and enable model tool selectable
Jarvis73 Jun 18, 2023
d1a6d54
fix css conflict
FengHZ Jun 18, 2023
b4dcaee
fix bug
FengHZ Jun 18, 2023
29caebf
change scroll bar
FengHZ Jun 18, 2023
496300d
feat: improve UI design and enable model tool selectable
Jarvis73 Jun 18, 2023
983d32c
reset input
FengHZ Jun 18, 2023
1ba3512
change usePrompt
FengHZ Jun 19, 2023
1171c5e
fix input bug
FengHZ Jun 19, 2023
a2d16aa
add input text-area
FengHZ Jun 19, 2023
1f73727
add input text-area
FengHZ Jun 19, 2023
26e4652
for mobile and chrome
FengHZ Jun 19, 2023
b40e2c8
add textarea change
FengHZ Jun 19, 2023
e7d3b8d
change some bug
FengHZ Jun 19, 2023
88013ec
fix onmounted bug
FengHZ Jun 20, 2023
2c8ccb7
fix onmounted bug
FengHZ Jun 20, 2023
fb907a0
improve UI
Jarvis73 Jun 20, 2023
d66df94
feat: show date in conversation list
Jarvis73 Jun 21, 2023
29fc11c
change welcome
FengHZ Jun 21, 2023
2bcd7f2
Merge branch 'main' of fenghz:Jarvis73/chatgpt-ui
FengHZ Jun 21, 2023
c67dbb5
Merge branch 'main' of chatgpt-ui:Jarvis73/chatgpt-ui
Jarvis73 Jun 21, 2023
246eb64
change capabilities
FengHZ Jun 21, 2023
f336d76
change icon
FengHZ Jun 21, 2023
94ed7bd
change文本
FengHZ Jun 22, 2023
68a5d91
feat: collapse conversation
Jarvis73 Jun 22, 2023
391bc3c
fix: force open conversation list
Jarvis73 Jun 22, 2023
cae1f1b
share UI
Jarvis73 Jun 22, 2023
fbf9ef8
change name to ChatMate
PaperCodeSubmission Jun 24, 2023
3a09a59
change color for gpt 3.5 and gpt 4
PaperCodeSubmission Jun 25, 2023
6937973
add logo
PaperCodeSubmission Jun 25, 2023
4ef9318
add logo
PaperCodeSubmission Jun 25, 2023
511153f
add logo
PaperCodeSubmission Jun 25, 2023
8eda48c
add logo
PaperCodeSubmission Jun 25, 2023
2a76473
change card color
PaperCodeSubmission Jun 25, 2023
66c666f
add invisible passwd
PaperCodeSubmission Jun 26, 2023
0c406d6
change gpt-3.5-turbo-16k max tokens
PaperCodeSubmission Jun 27, 2023
342c100
change gpt-3.5-turbo-16k max tokens
PaperCodeSubmission Jun 27, 2023
7bb0c04
add 16k
PaperCodeSubmission Jun 27, 2023
7178596
change 16k default params
PaperCodeSubmission Jun 27, 2023
44c1b83
change 3.5 default params
PaperCodeSubmission Jun 27, 2023
d25306d
change 3.5 default params
PaperCodeSubmission Jun 27, 2023
1743b06
change 3.5 default params
PaperCodeSubmission Jun 27, 2023
9b238e1
change 16k to vip
PaperCodeSubmission Jun 27, 2023
7f65451
change to purple
PaperCodeSubmission Jun 28, 2023
f39072c
add sponsorship
PaperCodeSubmission Jun 28, 2023
cc98db6
change 16k to vip
PaperCodeSubmission Jun 28, 2023
2cc05d9
share by image
Jarvis73 Jul 3, 2023
e36495b
improve text
Jarvis73 Jul 3, 2023
9e91856
add email login
PaperCodeSubmission Jul 4, 2023
be33674
add wrap code
PaperCodeSubmission Jul 6, 2023
6353d71
merge conversation
PaperCodeSubmission Jul 6, 2023
c9a8c4e
merge conversation
PaperCodeSubmission Jul 6, 2023
57f60d4
merge share
PaperCodeSubmission Jul 6, 2023
2769512
change user name style
PaperCodeSubmission Jul 6, 2023
2f594b9
change user name style
PaperCodeSubmission Jul 6, 2023
0400be3
change user name style
PaperCodeSubmission Jul 6, 2023
c0447d3
change linenumber display
PaperCodeSubmission Jul 8, 2023
c7cd333
change line break
PaperCodeSubmission Jul 8, 2023
6104a2d
bold conversation title
FengHZ Jul 12, 2023
9692c19
change chrome tab
FengHZ Jul 12, 2023
eef8692
add default scrolling
FengHZ Jul 12, 2023
d194232
add default scrolling
FengHZ Jul 12, 2023
b693bdf
add selectId variable
FengHZ Jul 13, 2023
a18a6dc
use route.params.id to get title
FengHZ Jul 13, 2023
96839a6
add auto scroll
FengHZ Jul 13, 2023
20f4b14
add limit
FengHZ Jul 14, 2023
87dc702
add limit
FengHZ Jul 14, 2023
ca5070c
add document title
FengHZ Jul 16, 2023
a79c633
change default params
FengHZ Jul 19, 2023
2b683bc
add prettier and prettier all files
JackieAnxis Jul 19, 2023
f7f823d
Merge pull request #3 from JackieAnxis/main
Jarvis73 Jul 19, 2023
35d6c87
change default system message
FengHZ Jul 20, 2023
3823194
limit min request to 1“
FengHZ Jul 29, 2023
57d6f8f
conversation delete confirm
Zacteh Jul 30, 2023
6bbd03f
Merge pull request #4 from Zacteh/main
FengHZ Jul 31, 2023
229544b
conversation delete bug fixes
Zacteh Aug 2, 2023
efeea9f
Merge pull request #5 from Zacteh/main
FengHZ Aug 2, 2023
2f324ce
change clear all conv
FengHZ Aug 2, 2023
8c3a6c8
change bold
FengHZ Aug 2, 2023
0f6b105
rework conversation delete confirm
Zacteh Aug 4, 2023
d7c275a
Merge pull request #6 from Zacteh/main
FengHZ Aug 4, 2023
936c76b
change deletion
FengHZ Aug 6, 2023
e5911ba
change del ui
FengHZ Aug 6, 2023
2162f35
change delete conversation format
FengHZ Aug 10, 2023
e3c20ed
feat: scroll down
WhiteWolf82 Sep 26, 2023
94a8bce
Update README.md
krrishdholakia Sep 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 23 additions & 30 deletions .github/workflows/docker-image-static.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
name: Docker Image CI - static

on:
release:
types: [published]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

build:

runs-on: ubuntu-latest

steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: static.Dockerfile
push: true
tags: wongsaang/chatgpt-ui-client:latest-static,wongsaang/chatgpt-ui-client:${{ github.ref_name }}-static
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: static.Dockerfile
push: true
tags: wongsaang/chatgpt-ui-client:latest-static,wongsaang/chatgpt-ui-client:${{ github.ref_name }}-static
51 changes: 22 additions & 29 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,28 @@
name: Docker Image CI

on:
release:
types: [published]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest

build:

runs-on: ubuntu-latest

steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: wongsaang/chatgpt-ui-client:latest,wongsaang/chatgpt-ui-client:${{ github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: wongsaang/chatgpt-ui-client:latest,wongsaang/chatgpt-ui-client:${{ github.ref_name }}
56 changes: 28 additions & 28 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: docs

on:
push:
branches: [main, docs]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
push:
branches: [main, docs]
paths:
- 'docs/**'
- '.github/workflows/docs.yml'
workflow_dispatch:

jobs:
docs:
runs-on: ubuntu-latest
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup yarn
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Setup yarn
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install
- name: Install dependencies
run: yarn install

- name: Build VuePress site
run: yarn docs:build
- name: Build VuePress site
run: yarn docs:build

- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs/.vuepress/dist
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
38 changes: 38 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// .prettierrc.js
module.exports = {
// max 100 characters per line
printWidth: 100,
// use 4 spaces for indentation
tabWidth: 4,
// use spaces instead of indentations
useTabs: false,
// semicolon at the end of the line
semi: false,
// use single quotes
singleQuote: true,
// object's key is quoted only when necessary
quoteProps: 'as-needed',
// use double quotes instead of single quotes in jsx
jsxSingleQuote: false,
// no comma at the end
trailingComma: 'none',
// spaces are required at the beginning and end of the braces
bracketSpacing: true,
// end tag of jsx need to wrap
jsxBracketSameLine: false,
// brackets are required for arrow function parameter, even when there is only one parameter
arrowParens: 'always',
// format the entire contents of the file
rangeStart: 0,
rangeEnd: Infinity,
// no need to write the beginning @prettier of the file
requirePragma: false,
// No need to automatically insert @prettier at the beginning of the file
insertPragma: false,
// use default break criteria
proseWrap: 'preserve',
// decide whether to break the html according to the display style
htmlWhitespaceSensitivity: 'css',
// lf for newline
endOfLine: 'lf'
}
83 changes: 81 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Test New LLMs (CodeLlama, Llama2, etc.)

Notice you forked chatgpt-ui. if you're trying to test other LLMs (codellama, wizardcoder, etc.) with it, I just wrote a [1-click proxy](https://github.com/BerriAI/litellm#openai-proxy-server) to translate openai calls to huggingface, anthropic, togetherai, etc. api calls.

**code**
```
$ pip install litellm
$ litellm --model huggingface/bigcode/starcoder
#INFO: Uvicorn running on http://0.0.0.0:8000
$ aider --openai-api-base http://0.0.0.0:8000
```

I'd love to know if this solves a problem for you

<div align="center">
<h1>ChatGPT UI</h1>
</div>
Expand All @@ -7,9 +21,74 @@ A ChatGPT web client that supports multiple users, multiple languages, and multi
The server of this project:[https://github.com/WongSaang/chatgpt-ui-server](https://github.com/WongSaang/chatgpt-ui-server)

## Documentation
- [English](https://wongsaang.github.io/chatgpt-ui/)
- [中文](https://wongsaang.github.io/chatgpt-ui/zh/)

- [English](https://wongsaang.github.io/chatgpt-ui/)
- [中文](https://wongsaang.github.io/chatgpt-ui/zh/)

https://user-images.githubusercontent.com/46235412/227156264-ca17ab17-999b-414f-ab06-3f75b5235bfe.mp4

## Development

需要提前运行后端环境,详情参考后端的开发文档。

如果需要删除 `yarn.lock` 重新生成, 则需要处理一些一些错误的问题.

```bash
yarn install
yarn dev
```

遇到如下提示, 选择 2.0.0-beta.61

```
Couldn't find any versions for "vuepress-vite" that matches "2.0.0-beta.50-pre.1"
? Please choose a version of "vuepress-vite" from this list:
```

然后编辑 `yarn.lock` 文件, 把下面的内容

```

[email protected]:
version "2.0.0-beta.61"
resolved "https://registry.npmmirror.com/vuepress-vite/-/vuepress-vite-2.0.0-beta.61.tgz#04058551e6be014e9f2dee14c5d8043b158e032d"
integrity sha512-4mcR8XSY5b36CYkPqF80WvoeGAEjTw6Cr9bMPHrPVSjG4qqyfVpdSdyRtXD+/5aLJB7r/L60J7PI1pKTci1+3w==
dependencies:
"@vuepress/bundler-vite" "2.0.0-beta.61"
"@vuepress/cli" "2.0.0-beta.61"
"@vuepress/core" "2.0.0-beta.61"
"@vuepress/theme-default" "2.0.0-beta.61"

vuepress@^2.0.0-beta.61:
version "2.0.0-beta.50-pre.1"
resolved "https://registry.npmmirror.com/vuepress/-/vuepress-2.0.0-beta.50-pre.1.tgz#26eec90444bb37590f29d10dd5923e75c476189f"
integrity sha512-4Finc3GDscIqgRFAZFwa4SUm8tIFSVQIxnPIpQPW3kaM37rKylvUDkLrs2lMvoDPTAAE+Kf+v34tAFX+ZMGKUg==
dependencies:
vuepress-vite "2.0.0-beta.50-pre.1"

```

替换成

```

[email protected]:
version "2.0.0-beta.61"
resolved "https://registry.npmmirror.com/vuepress-vite/-/vuepress-vite-2.0.0-beta.61.tgz#04058551e6be014e9f2dee14c5d8043b158e032d"
integrity sha512-4mcR8XSY5b36CYkPqF80WvoeGAEjTw6Cr9bMPHrPVSjG4qqyfVpdSdyRtXD+/5aLJB7r/L60J7PI1pKTci1+3w==
dependencies:
"@vuepress/bundler-vite" "2.0.0-beta.61"
"@vuepress/cli" "2.0.0-beta.61"
"@vuepress/core" "2.0.0-beta.61"
"@vuepress/theme-default" "2.0.0-beta.61"

vuepress@^2.0.0-beta.61:
version "2.0.0-beta.61"
resolved "https://registry.npmmirror.com/vuepress/-/vuepress-2.0.0-beta.61.tgz"
integrity sha512-gpttL0x5ZvI9eTyR/pexBknIAcgrdjAWoiJc7OYd4bIVfwlXAb4GO4A2EwRSX+pIaNOWdcd+sfZA86EMEbrtNg==
dependencies:
vuepress-vite "2.0.0-beta.61"

```

重新 `yarn install`
10 changes: 5 additions & 5 deletions app.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</template>
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</template>
1 change: 1 addition & 0 deletions assets/gpt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading