Skip to content

Commit fc89c59

Browse files
committed
[Enhancement] Enhance validation for create connector API
This change will address the second part of validation "pre and post processing function validation". Partially resolves opensearch-project#2993 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
1 parent 5dce834 commit fc89c59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/src/main/java/org/opensearch/ml/common/connector/ConnectorAction.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ public static ConnectorAction parse(XContentParser parser) throws IOException {
200200

201201
/**
202202
* Validates whether pre and post process functions corresponding to the same llm service or not.
203-
* There are specific pre and post process functions defined for each end llm services, so if you are
204-
* configuring the pre-built functions it has to be from the corresponding list. This method throws
205-
* IllegalArgumentException exception if it is configured wrongly.
203+
* There are specific pre and post process functions defined for each llm services, so if you are
204+
* configuring the pre-built functions it has to be from the corresponding list. This method
205+
* adds a warning in the log if it is configured wrongly.
206206
*
207207
* @param parameters - connector parameters
208208
*/

0 commit comments

Comments
 (0)