api-manager
api-manager copied to clipboard
Multiple weights can be assigned to the same model in AI policy
Description
Multiple weights can be added for the models listed under the weighted policy in AI policy. This should be corrected so that once a weight is added to a model, it is no longer shown in the dropdown.
Steps to Reproduce
Create an AI API and add the weighted round robin policy with weight for the models
Version
4.5.0-beta
Environment Details (with versions)
No response
Reopening this since fix [1] was reverted.
We need to modify this fix to include model & endpoint pair as opposed to just blocking same model addition.
- https://github.com/wso2/apim-apps/pull/965