corgy-w commented on code in PR #8551:
URL: https://github.com/apache/seatunnel/pull/8551#discussion_r1923086606


##########
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/llm/remote/custom/CustomModel.java:
##########
@@ -94,8 +95,15 @@ protected List<String> chatWithModel(String promptWithLimit, 
String rowsJson)
         if (response.getStatusLine().getStatusCode() != 200) {
             throw new IOException("Failed to get vector from custom, response: 
" + responseStr);
         }
-        return OBJECT_MAPPER.convertValue(
-                parseResponse(responseStr), new TypeReference<List<String>>() 
{});
+        try {
+            return OBJECT_MAPPER.convertValue(
+                    parseResponse(responseStr), new 
TypeReference<List<String>>() {});
+        } catch (Exception e) {

Review Comment:
   get



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to