Commit 9ff36e51676135f16ec0e3d6bd6f58e5d55fe5fc
1 parent
067fc581
【优化】open ai image 测试
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-ai/yudao-spring-boot-starter-ai/src/test/java/cn/iocoder/yudao/framework/ai/openAiImage/OpenAiImageClientTests.java
| @@ -36,7 +36,7 @@ public class OpenAiImageClientTests { | @@ -36,7 +36,7 @@ public class OpenAiImageClientTests { | ||
| 36 | 36 | ||
| 37 | @Test | 37 | @Test |
| 38 | public void callTest() { | 38 | public void callTest() { |
| 39 | - ImageResponse call = openAiImageClient.call(new ImagePrompt("我和我的小狗,一起在北极和企鹅玩排球。")); | 39 | + ImageResponse call = openAiImageClient.call(new ImagePrompt("中国长城!")); |
| 40 | System.err.println("url: " + call.getResult().getOutput().getUrl()); | 40 | System.err.println("url: " + call.getResult().getOutput().getUrl()); |
| 41 | System.err.println("base64: " + call.getResult().getOutput().getB64Json()); | 41 | System.err.println("base64: " + call.getResult().getOutput().getB64Json()); |
| 42 | 42 |