Giter VIP home page Giter VIP logo

chatgpt's Issues

一些小建议

老哥好,很感谢您,学习到了很多,但是奈何前段知识匮乏,特此像您请教一下。
① 手机端的键盘升起会挡住输入框,请问是否可以设计输入框和键盘一同升起
② 做成官网效果的瀑布流输出
③ Chatgpt4

复现"登录和收费"版本遇到的问题

按照无需登录的版本在VSCode里运行npm run dev后报错:

PS C:\Users\user\Downloads\chatGPT-main> npm run dev
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-07-17T08_04_05_541Z-debug-0.log
PS C:\Users\user\Downloads\chatGPT-main> npm run build
npm ERR! Missing script: "build"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-07-17T08_04_29_480Z-debug-0.log
PS C:\Users\user\Downloads\chatGPT-main> npm run build
npm ERR! Missing script: "build"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-07-17T08_06_47_784Z-debug-0.log
PS C:\Users\user\Downloads\chatGPT-main> npm run dev
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Local\npm-cache_logs\2023-07-17T08_06_51_310Z-debug-0.log

也许是我方法不对,还望左风大佬拨冗解答,谢谢。

复现教程过程我遇到的三个问题

  1. 粘贴 添加了"追踪上下文"功能的代码(如下)后, 点击运行报错
    import cloud from '@lafjs/cloud'
    export async function main(ctx: FunctionContext) {
    const { ChatGPTAPI } = await import('chatgpt')
    const api = new ChatGPTAPI({ apiKey: cloud.env.CHAT_GPT_API_KEY })

let res = await api.sendMessage('“鸡你太美”指的是**大陆哪位男艺人?给你个提示,他喜欢唱、跳、篮球、Rap')
console.log(res.text)

// 传入 parentMessageId 追踪上下文
res = await api.sendMessage('不对,他姓蔡,请重新回答', {
parentMessageId: res.id
})
console.log(res.text)

return res.text
}

报错讯息:AxiosError: Request failed with status code 502"
已排除API问题;也不是代码拷贝有误——因为第一段代码运行正常,甚至第一次就会出现正确答案(蔡徐坤)。

2.laf左下角选择了内置依赖chatgpt后,安装并重启后并如教程中那样没有出现“自定义依赖 chatGPT 版本号”,依然是空白一片。

  1. VS code 打开本地的feat-1后, 运行npm run dev后,弹出的UI界面无法回答问题。
    报错讯息:出错了,请重试!
    依然排除OpenAI的API问题。

还望大神拨冗解答,谢谢!

对于0前端基础的小白不友好

按照小白文档,将项目放到了laf上, 但是main.js报错缺少vue。我不知道去哪里下载这个依赖,三分钟小白文档也没说。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.