Code Monkey home page Code Monkey logo

chatgpt-nuxt's People

Contributors

bitsnaps avatar ittkm avatar junduck avatar lianginx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-nuxt's Issues

新的模型

大佬可以考虑把图像生成和语音转文字接入吗?就是openAI官方的这两个模型:DALL·E 和 Whisper

npm run dev ERROR Unable to obtain an available random port number!

ERROR Unable to obtain an available random port number! 22:24:24

at getRandomPort (node_modules/nuxi/dist/chunks/index.mjs:165:11)
at async findPort (node_modules/nuxi/dist/chunks/index.mjs:236:24)
at async getPort (node_modules/nuxi/dist/chunks/index.mjs:148:21)
at async listen (node_modules/nuxi/dist/chunks/index.mjs:704:16)
at async Object.invoke (node_modules/nuxi/dist/chunks/dev.mjs:6773:22)
at async _main (node_modules/nuxi/dist/cli.mjs:49:20)

Appeared during the reply

This is not a chat model and thus not supported in the v1/chat/completions endpoint. Did you mean to use v1/completions?

yarn error incorrect data check

“Unexpected end of JSON input ” 频繁出现这个问题

我:the map struct in javascript
chatgpt:In JavaScript, a "map" is a built-in data structure that allows you to store key-value pairs, where the keys can be of any type (including objects) and the values can be of any type (including other maps, arrays, or functions).

Here is an example

Unexpected end of JSON input

出现得挺频繁的,大佬有时间可以看一下吗

第一步npm i出错显示Segmentation fault

卡在第一步安装依赖。机器是CentOS 7,已更新gcc等。
图片
我的2G小鸡还有剩1G以上内存。但是就是安装不成功。
大神能否直接将环境配置写进Dockerfile。便于docker部署。

yarn dev error

(node:7156) UnhandledPromiseRejectionWarning: Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only file and data URLs are supported by the default ESM loader
at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:781:11)

docker-compose打出来的镜像无法启动

直接运行docker-compose up -d,容器无法启动,报错如下:
node[1]: ../src/node_platform.cc:68:std::unique_ptr node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xc925e0 node::Abort() [node]
2: 0xc9265e [node]
3: 0xd0e1a9 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
4: 0xd0e2cc node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
5: 0xc4fc04 node::V8Platform::Initialize(int) [node]
6: 0xc4d448 [node]
7: 0xc4d81b node::Start(int, char**) [node]
8: 0x7fee2304918a [/lib/x86_64-linux-gnu/libc.so.6]
9: 0x7fee23049245 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
10: 0xbabf4e _start [node]

有没有构建好的镜像可以直接用呢

npm i或者npm run dev 提示报错

ERROR Cannot start nuxt: Cannot find module 'pinia/dist/pinia.mjs'
Require stack:

  • D:\dev\nuxtchat\index.js

    Require stack:

    • index.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
      at Function.resolve (node:internal/modules/cjs/helpers:109:19)
      at Function._resolve [as resolve] (node_modules\jiti\dist\jiti.js:1:241025)
      at resolveModule (/D:/dev/nuxtchat/node_modules/@nuxt/kit/dist/index.mjs:2230:29)
      at setup (/D:/dev/nuxtchat/node_modules/@pinia/nuxt/dist/module.mjs:26:60)
      at normalizedModule (/D:/dev/nuxtchat/node_modules/@nuxt/kit/dist/index.mjs:2140:37)
      at async installModule (/D:/dev/nuxtchat/node_modules/@nuxt/kit/dist/index.mjs:2409:95)
      at async initNuxt (/D:/dev/nuxtchat/node_modules/nuxt/dist/index.mjs:3174:7)
      at async load (/D:/dev/nuxtchat/node_modules/nuxi/dist/chunks/dev.mjs:204:9)
      at async Object.invoke (/D:/dev/nuxtchat/node_modules/nuxi/dist/chunks/dev.mjs:248:5)

docker-compose报错

报错信息:
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | node:internal/modules/cjs/loader:1075
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | throw err;
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | ^
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 |
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | Error: Cannot find module '/app/server/index.mjs'
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | at Module._resolveFilename (node:internal/modules/cjs/loader:1072:15)
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | at Module._load (node:internal/modules/cjs/loader:925:27)
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | at node:internal/main/run_main_module:23:47 {
2023-06-29 18:17:59 chatgpt-nuxt-master-1-chatgpt-nux-1 | code: 'MODULE_NOT_FOUND',
找不到index.mjs
yaml文件里的:
volumes:
- .output/:/app # 把当前宿主机的目录映射到容器内 (Map the directory of the current host to the container)
请问这个.output是什么目录,文件夹为空为何要挂载?

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.