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
# Copy the current directory contents into the container at /client
COPY /client/ /client/
# Set the memory limit for Node.js
ENV NODE_OPTIONS="--max-old-space-size=2048"
# Build webpack artifacts
RUN npm run build

8
api/package-lock.json generated
View file

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

View file

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

View file

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

View file

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

View file

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

4
package-lock.json generated
View file

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

View file

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