Skip to content

Commit

Permalink
feat(ml): add new ml model listing endpoint to platform client
Browse files Browse the repository at this point in the history
  • Loading branch information
JTangCoveo committed Oct 5, 2023
1 parent 621ab23 commit 2ace76f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/MachineLearning/ModelListing/ModelListing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default class ModelListing extends Resource {

list(engineIds?: string[]) {
const requestUrl = engineIds?.length
? `${ModelListing.baseUrl}?${engineIds.map((id) => `engineId=${encodeURI(id)}`).join('&')}`
? `${ModelListing.baseUrl}?${engineIds.map((id) => `engineIds=${encodeURI(id)}`).join('&')}`
: ModelListing.baseUrl;
return this.api.get<MLListingModel[]>(requestUrl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface MLListingModel {

export interface MLModelStatusInfo {
modelStatus: string;
daysUntilArchival: number;
daysUntilArchival?: number;
}

export interface MLModelAssociation {
Expand Down

0 comments on commit 2ace76f

Please sign in to comment.