yunfengzhou-hub commented on code in PR #27163:
URL: https://github.com/apache/flink/pull/27163#discussion_r2477526444


##########
docs/content/docs/connectors/models/openai.md:
##########
@@ -157,6 +157,57 @@ FROM ML_PREDICT(
                 </ul>
             </td>
         </tr>
+        <tr>
+            <td>
+                <h5>error-handling-strategy</h5>
+            </td>
+            <td>optional</td>
+            <td style="word-wrap: break-word;">retry</td>
+            <td>Enum</td>
+            <td>Strategy for handling errors during model requests. Supported 
strategies:
+                <ul>
+                    <li><code>retry</code>: Retry sending the request. The 
retrying behavior is limited by retry-num, retry-fallback-strategy, 
retry-backoff-strategy and retry-backoff-base-interval.</li>
+                    <li><code>failover</code>: Throw exceptions and fail the 
Flink job.</li>
+                    <li><code>ignore</code>: Ignore the input that caused the 
error and continue. The error itself would be recorded in log.</li>

Review Comment:
   Thanks for the suggestion. I tried to add `error-string`, `http-status-code` 
and `http-headers-map` as optional output metadata columns in the latest 
commit. Please take a look.
   
   I did not add `http-completion-state` yet, as OpenAI's Java SDK did not 
provide direct access to this information. Maybe we can extend this function in 
future.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to