mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 09:30:05 +08:00
【优化】测试添加nonce兼容
This commit is contained in:
parent
b3bc2d7a5f
commit
6b3020c04a
@ -1,6 +1,7 @@
|
|||||||
package cn.iocoder.yudao.framework.ai.midjourney;
|
package cn.iocoder.yudao.framework.ai.midjourney;
|
||||||
|
|
||||||
import cn.hutool.core.io.FileUtil;
|
import cn.hutool.core.io.FileUtil;
|
||||||
|
import cn.hutool.core.util.IdUtil;
|
||||||
import cn.iocoder.yudao.framework.ai.midjourney.api.MidjourneyInteractionsApi;
|
import cn.iocoder.yudao.framework.ai.midjourney.api.MidjourneyInteractionsApi;
|
||||||
import cn.iocoder.yudao.framework.ai.midjourney.api.req.AttachmentsReq;
|
import cn.iocoder.yudao.framework.ai.midjourney.api.req.AttachmentsReq;
|
||||||
import cn.iocoder.yudao.framework.ai.midjourney.api.req.DescribeReq;
|
import cn.iocoder.yudao.framework.ai.midjourney.api.req.DescribeReq;
|
||||||
@ -39,7 +40,7 @@ public class MidjourneyInteractionsTests {
|
|||||||
@Test
|
@Test
|
||||||
public void mjImageTest() {
|
public void mjImageTest() {
|
||||||
MidjourneyInteractionsApi mjImagineInteractions = new MidjourneyInteractionsApi(midjourneyConfig);
|
MidjourneyInteractionsApi mjImagineInteractions = new MidjourneyInteractionsApi(midjourneyConfig);
|
||||||
mjImagineInteractions.imagine("童话里应该是什么样子?");
|
mjImagineInteractions.imagine(IdUtil.getSnowflakeNextId(), "童话里应该是什么样子?");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user