mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
新增Hutool-AI服务
This commit is contained in:
parent
322c079abf
commit
008b9fd662
@ -57,7 +57,7 @@ public class HutoolServiceImpl extends BaseAIService implements HutoolService {
|
|||||||
private final String CREATE_VIDEO = "/video/generations";
|
private final String CREATE_VIDEO = "/video/generations";
|
||||||
|
|
||||||
public HutoolServiceImpl(final AIConfig config) {
|
public HutoolServiceImpl(final AIConfig config) {
|
||||||
//初始化grok客户端
|
//初始化hutool客户端
|
||||||
super(config);
|
super(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,6 @@ class HutoolServiceTest {
|
|||||||
@Disabled
|
@Disabled
|
||||||
void embeddingVision() {
|
void embeddingVision() {
|
||||||
final String embeddingVision = hutoolService.embeddingVision("天空好难", "https://img2.baidu.com/it/u=862000265,4064861820&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1544");
|
final String embeddingVision = hutoolService.embeddingVision("天空好难", "https://img2.baidu.com/it/u=862000265,4064861820&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1544");
|
||||||
System.out.println(embeddingVision);
|
|
||||||
assertNotNull(embeddingVision);
|
assertNotNull(embeddingVision);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -186,7 +185,6 @@ class HutoolServiceTest {
|
|||||||
@Disabled
|
@Disabled
|
||||||
void getVideoTasksInfo() {
|
void getVideoTasksInfo() {
|
||||||
final String videoTasksInfo = hutoolService.getVideoTasksInfo("cgt-20250529154621-d7dq9");
|
final String videoTasksInfo = hutoolService.getVideoTasksInfo("cgt-20250529154621-d7dq9");
|
||||||
System.out.println(videoTasksInfo);
|
|
||||||
assertNotNull(videoTasksInfo);
|
assertNotNull(videoTasksInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user