You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I call connector update API below to update temperature field in parameters
{
"parameters": {
"temperature": 3
}
}
I get an exception:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Connector URL is not matching the trusted connector endpoint regex, URL is: https://${parameters.endpoint}/v1/embeddings"
}
],
"type": "illegal_argument_exception",
"reason": "Connector URL is not matching the trusted connector endpoint regex, URL is: https://${parameters.endpoint}/v1/embeddings"
},
"status": 400
}
It worked well if I created the connector with url directly configured not through parameters "url": "https://api.openai.com/v1/embeddings",
I think it fails this validation because the parameters payload in the update API doesn't include endpoint.
How can one reproduce the bug?
Check bug description
What is the expected behavior?
I'm wondering what the expected behavior is when the update API only includes one attribute in parameters, should it overwrite the whole parameters field or it should merge with existing parameters configuration. The current behavior is merge.
If merge is the expected behavior then before making this validation, we may need to merge parameters.
What is your host/environment?
OS: MacOS
Version: 2.14
Plugins: ml-commons
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered:
This is not a bug since the behavior is expected. In the current Update Connector API, the parameters in the update request body will override the existing ones in the connector so some parameters can be deleted. However, I do think we should tune this a bit to merge rather than replacing the whole parameters, as I updated in this #2784.
What is the bug?
I created a connector with payload below
Then I call connector update API below to update
temperature
field in parametersI get an exception:
It worked well if I created the connector with url directly configured not through parameters
"url": "https://api.openai.com/v1/embeddings",
I think it fails this validation because the parameters payload in the update API doesn't include endpoint.
How can one reproduce the bug?
Check bug description
What is the expected behavior?
I'm wondering what the expected behavior is when the update API only includes one attribute in parameters, should it overwrite the whole
parameters
field or it should merge with existingparameters
configuration. The current behavior is merge.If merge is the expected behavior then before making this validation, we may need to merge parameters.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: