Giter Site home page Giter Site logo

操作失败 about chatgptwithmidjourney HOT 9 CLOSED

zo3i avatar zo3i commented on September 7, 2024
操作失败

from chatgptwithmidjourney.

Comments (9)

Zo3i avatar Zo3i commented on September 7, 2024

可能是你的配置错了。默认是不用配置midjourneyapi的。

from chatgptwithmidjourney.

x0620x avatar x0620x commented on September 7, 2024

可能是你的配置错了。默认是不用配置midjourneyapi的。

设置的页面不需要填入 midjourneyapi 吗?

from chatgptwithmidjourney.

Zo3i avatar Zo3i commented on September 7, 2024

可以不写

from chatgptwithmidjourney.

x0620x avatar x0620x commented on September 7, 2024

可以不写

我看您写的示例 .env.local 需要创建,然后添加参数
意思是在项目跟目录创建这个文件,然后加入示例的那四个参数吗?
还是说,这个不需要,直接部署运行后在设置里输入opai的key 和 mj的key 就可以了
我想的场景是,项目里配置opai的key和mj的key,用户只需要输入密码就可以使用了。如本项目原版那样,在部署的时候通过环境变量就可以设置默认的opaikey。

from chatgptwithmidjourney.

Zo3i avatar Zo3i commented on September 7, 2024

项目里配置opai的key和mj的key 你理解的是对的。其他不用配置就能跑。

from chatgptwithmidjourney.

x0620x avatar x0620x commented on September 7, 2024

非肥肠感谢您的回答,还有一个疑问,是否只需要在项目跟目录下创建 env.local 文件,并只配置 MIDJOURNEY_API_KEY= 一个参数即可。

from chatgptwithmidjourney.

Zo3i avatar Zo3i commented on September 7, 2024

只是做图是够了。

from chatgptwithmidjourney.

x0620x avatar x0620x commented on September 7, 2024

只是做图是够了。

您好,我在本地开发进行测试,根目录下创建 env.local 文件,并只配置 MIDJOURNEY_API_KEY= 这一个参数,然后在使用的时候总会报错(操作失败,Required request body is missing: public org.jeecg.common.api.vo.Result<?> org.jeecg.modules.midjourney.controller.WebhookController.request(org.jeecg.modules.midjourney.data.Msg,javax.servlet.http.HttpServletRequest)) 并不知道是不是网络的问题,现在我准备放弃本地开发,如果在 vercel 上部署,不想让用户输入,可否使用 Environment Variables 环境变量来指定 MIDJOURNEY 的key呢?

from chatgptwithmidjourney.

Zo3i avatar Zo3i commented on September 7, 2024

嗯可以的

from chatgptwithmidjourney.

Related Issues (20)

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.