Merge pull request #176 from danny-avila/minor-fixes

Minor fixes
This commit is contained in:
Danny Avila 2023-04-09 07:38:28 -04:00 committed by GitHub
commit 3c8ac933ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 14 deletions

View file

@ -6,6 +6,8 @@ COPY /client/package*.json /client/
RUN npm ci RUN npm ci
# Copy the current directory contents into the container at /client # Copy the current directory contents into the container at /client
COPY /client/ /client/ COPY /client/ /client/
# Set the memory limit for Node.js
ENV NODE_OPTIONS="--max-old-space-size=2048"
# Build webpack artifacts # Build webpack artifacts
RUN npm run build RUN npm run build

8
api/package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@dqbd/tiktoken": "^1.0.2", "@dqbd/tiktoken": "^1.0.2",
@ -3866,7 +3866,7 @@
} }
}, },
"node_modules/media-typer": { "node_modules/media-typer": {
"version": "0.3.0", "version": "0.3.2",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
"engines": { "engines": {
@ -8694,7 +8694,7 @@
} }
}, },
"media-typer": { "media-typer": {
"version": "0.3.0", "version": "0.3.2",
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="
}, },

View file

@ -1,6 +1,6 @@
{ {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"description": "", "description": "",
"main": "server/index.js", "main": "server/index.js",
"scripts": { "scripts": {

View file

@ -1,12 +1,12 @@
{ {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@headlessui/react": "^1.7.13", "@headlessui/react": "^1.7.13",
@ -8959,7 +8959,7 @@
} }
}, },
"node_modules/media-typer": { "node_modules/media-typer": {
"version": "0.3.0", "version": "0.3.2",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -19587,7 +19587,7 @@
} }
}, },
"media-typer": { "media-typer": {
"version": "0.3.0", "version": "0.3.2",
"dev": true "dev": true
}, },
"memfs": { "memfs": {

View file

@ -1,6 +1,6 @@
{ {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"description": "", "description": "",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -62,7 +62,8 @@ export default function TextChat({ isSearchView = false }) {
setText(''); setText('');
}; };
const handleStopGenerating = () => { const handleStopGenerating = (e) => {
e.preventDefault();
stopGenerating(); stopGenerating();
}; };

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@playwright/test": "^1.32.1", "@playwright/test": "^1.32.1",

View file

@ -1,6 +1,6 @@
{ {
"name": "chatgpt-clone", "name": "chatgpt-clone",
"version": "0.3.0", "version": "0.3.2",
"description": "", "description": "",
"scripts": { "scripts": {
"e2e": "playwright test --config=e2e/playwright.config.js", "e2e": "playwright test --config=e2e/playwright.config.js",