-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intra-vendor model routing support for AI APIs #12870
Intra-vendor model routing support for AI APIs #12870
Conversation
Gateway implementation for intra-vendor routing
4d22f05
into
wso2:intra-vendor-model-routing-feature
/* | ||
* Copyright (c) 2025, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. licenses this file to you under the Apache License, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* WSO2 Inc. licenses this file to you under the Apache License, | |
* WSO2 LLc. licenses this file to you under the Apache License, |
} | ||
} | ||
// /** | ||
// * Validates if the provided LLM provider ID exists in the organization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented out code
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE, | ||
PRIMARY KEY (MAPPING_ID) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS AM_API_SEQUENCE_BACKEND ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add scripts for other db types
CommonUtils.validateAPIExistence(apiId); | ||
PublisherCommonUtils.updateAPIEndpoint(apiId, endpointId, apIEndpointDTO, organization, apiProvider); | ||
APIEndpointInfo updatedAPIEndpoint = apiProvider.getAPIEndpointByUUID(apiId, endpointId); | ||
APIEndpointDTO updatedAPIEndpointDTO = APIMappingUtil.fromAPIEndpointToDTO(updatedAPIEndpoint); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find any logic to handling invalid endpoint id passed here. 404 error should be sent if endpoint is not found for the given id.
No description provided.