Skip to content

Commit

Permalink
Revert "simple chatgpt interface"
Browse files Browse the repository at this point in the history
This reverts commit a4269df.
  • Loading branch information
Eric committed Jun 13, 2023
1 parent baaf492 commit 3cb89e5
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 335 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ SALAI_TOKEN="Token of the Account from which you paid MidJourney"
SERVER_ID="Server id here"
CHANNEL_ID="Channel in which commands are sent"
NEXT_PUBLIC_IMAGE_PREFIX="/"
HUGGINGFACE_TOKEN="huggingface token here https://huggingface.co/docs/hub/security-tokens"
OPENAI_API_KEY="openai api key here"
HUGGINGFACE_TOKEN="huggingface token here https://huggingface.co/docs/hub/security-tokens"
183 changes: 0 additions & 183 deletions components/Form.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions layouts/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React, { useEffect, useState } from 'react';
import {
SmileOutlined,
GithubFilled,
WechatOutlined,
PictureFilled,

} from '@ant-design/icons'
Expand All @@ -24,11 +23,6 @@ const ROUTES: Route = {
name: 'MidJourney',
icon: <SmileOutlined />,
},
{
path: '/chatgpt',
name: 'ChatGPT',
icon: <WechatOutlined />,
},
],
}

Expand Down
36 changes: 0 additions & 36 deletions pages/api/response.ts

This file was deleted.

12 changes: 0 additions & 12 deletions pages/chatgpt.tsx

This file was deleted.

80 changes: 0 additions & 80 deletions utils/OpenAIStream.ts

This file was deleted.

17 changes: 1 addition & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -922,13 +922,6 @@ axe-core@^4.6.2:
resolved "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz"
integrity sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==

axios@^0.26.0:
version "0.26.1"
resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.1.tgz#1ede41c51fcf51bbbd6fd43669caaa4f0495aaa9"
integrity sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==
dependencies:
follow-redirects "^1.14.8"

axios@^1.3.6:
version "1.3.6"
resolved "https://registry.npmjs.org/axios/-/axios-1.3.6.tgz"
Expand Down Expand Up @@ -1638,7 +1631,7 @@ flatted@^3.1.0:
resolved "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz"
integrity sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==

follow-redirects@^1.14.8, follow-redirects@^1.15.0:
follow-redirects@^1.15.0:
version "1.15.2"
resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz"
integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==
Expand Down Expand Up @@ -2466,14 +2459,6 @@ open@^8.4.0:
is-docker "^2.1.1"
is-wsl "^2.2.0"

openai@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/openai/-/openai-3.2.1.tgz#1fa35bdf979cbde8453b43f2dd3a7d401ee40866"
integrity sha512-762C9BNlJPbjjlWZi4WYK9iM2tAVAv0uUp1UmI34vb0CN5T2mjB/qM6RYBmNKMh/dN9fC+bxqPwWJZUTWW052A==
dependencies:
axios "^0.26.0"
form-data "^4.0.0"

optionator@^0.9.1:
version "0.9.1"
resolved "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz"
Expand Down

1 comment on commit 3cb89e5

@vercel
Copy link

@vercel vercel bot commented on 3cb89e5 Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.