|
|
@ -39,7 +39,7 @@ public class ZhipuAnalysisHandlerGlm4v extends AbstractZhipuAnalysisHandler { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public ModelApiResponse sendRequest(String text, String url) { |
|
|
|
public ModelApiResponse sendRequest(String text, String url) { |
|
|
|
ChatCompletionRequest request = getRequest(text, url); |
|
|
|
ChatCompletionRequest request = getRequest(text, url); |
|
|
|
log.info("send zhipu ai request :{}", Optional.ofNullable(request).map(JsonUtil::toJson).orElse("null")); |
|
|
|
log.info("send zhipu ai request ,text is {},url is {}", text, url); |
|
|
|
return client.invokeModelApi(request); |
|
|
|
return client.invokeModelApi(request); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|