module.exports = {
extends: ['@evan-yang', 'plugin:astro/recommended'],
rules: {
'no-console': ['error', { allow: ['error'] }],
'react/display-name': 'off',
'react-hooks/rules-of-hooks': 'off',
'@typescript-eslint/no-use-before-define': 'off',
},
overrides: [
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro'],
},
rules: {
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'],
},
},
{
// Define the configuration for `<script>` tag.
// Script in `<script>` is assigned a virtual file name with the `.js` extension.
files: ['**/*.astro/*.js', '*.astro/*.js'],
parser: '@typescript-eslint/parser',
rules: {
'prettier/prettier': 'off',
},
},
],
}
没有合适的资源?快使用搜索试试~ 我知道了~
一个基于 OpenAI GPT-3.5 Turbo API 的 带UI界面的ChatGPT应用程序源码+使用说明文档
共51个文件
ts:9个
tsx:8个
astro:7个
5星 · 超过95%的资源 11 下载量 43 浏览量
2023-05-05
16:26:42
上传
评论 2
收藏 172KB ZIP 举报
温馨提示
一个基于 OpenAI GPT-3.5 Turbo API 的 带UI界面的ChatGPT应用程序源码+使用说明文档 本地运行 前置环境 Node: 检查您的开发环境和部署环境是否都使用 Node v18 或更高版本。你可以使用 nvm 管理本地多个 node 版本。 node -v PNPM: 我们推荐使用 pnpm 来管理依赖,如果你从来没有安装过 pnpm,可以使用下面的命令安装: npm i -g pnpm OPENAI_API_KEY: 在运行此应用程序之前,您需要从 OpenAI 获取 API 密钥。您可以在 https://beta.openai.com/signup 注册 API 密钥。 起步运行 安装依赖 pnpm install 复制 .env.example 文件,重命名为 .env,并添加你的 OpenAI API key 到 .env 文件中 OPENAI_API_KEY=sk-xxx... 运行应用,本地项目运行在 http://localhost:3000/ pnpm run dev
资源推荐
资源详情
资源评论
收起资源包目录
chatgpt-demo-main.zip (51个子文件)
chatgpt-demo-main
vercel.json 49B
netlify.toml 250B
.vscode
settings.json 283B
extensions.json 128B
launch.json 207B
.eslintrc.js 878B
plugins
disableBlocks.ts 617B
.github
workflows
main.yml 1KB
lint.yml 490B
build-docker.yml 1015B
.env.example 595B
src
pages
api
auth.ts 398B
generate.ts 2KB
password.astro 2KB
index.astro 895B
types.ts 159B
utils
auth.ts 1KB
openAI.ts 2KB
components
Generator.tsx 8KB
SystemRoleSettings.tsx 2KB
Themetoggle.astro 3KB
Header.astro 390B
icons
Clear.tsx 334B
X.tsx 439B
Env.tsx 497B
Refresh.tsx 1KB
ErrorMessageItem.tsx 660B
Logo.astro 1KB
MessageItem.tsx 3KB
Footer.astro 330B
env.d.ts 366B
layouts
Layout.astro 2KB
message.css 411B
README.zh-CN.md 6KB
astro.config.mjs 2KB
docker-compose.yml 498B
package.json 1KB
public
apple-touch-icon.png 6KB
pwa-512.png 29KB
icon.svg 1KB
pwa-192.png 9KB
Dockerfile 440B
unocss.config.ts 3KB
pnpm-lock.yaml 277KB
hack
docker-env-replace.sh 1KB
docker-entrypoint.sh 426B
.eslintignore 61B
tsconfig.json 231B
shims.d.ts 406B
.dockerignore 97B
.npmrc 114B
共 51 条
- 1
云哲-吉吉2021
- 粉丝: 3214
- 资源: 1130
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240430_144340_com.ss.android.ugc.live.jpg
- 回到山沟沟.mp3
- 111111111111111111
- 基于matlab实现关于语音信号声源定位DOA估计所用的一些传统算法.rar
- 基于ultralytics-yolov8, 将其检测/分类/分割/姿态等任务移植到rk3588上
- Screenshot_2024-04-30-21-47-24-26.jpg
- 基于matlab实现波束形成,包括线阵、平面阵和圆阵
- Python自动生成excel周期报告源码
- 基于matlab实现DOA 估计和自适应波束形成.rar
- 一个基于yolov8的火灾检测部署
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页