Skip to content

Commit

Permalink
Merge pull request #77 from cloudera/mob/fix-model-status
Browse files Browse the repository at this point in the history
fix model status for bedrock
  • Loading branch information
ewilliams-cloudera authored Dec 12, 2024
2 parents f63363c + 0dd9e0c commit 5484d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/api/modelsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import {
export interface Model {
name?: string;
model_id: string;
available?: boolean;
available: boolean | null;
replica_count?: number;
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Models/ModelTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const modelColumns: TableProps<Model>["columns"] = [
if (!model.name) {
return null;
}
if (model.available === undefined) {
if (model.available === null) {
return "Unknown";
}
return model.available ? "Available" : "Not Ready";
Expand Down

0 comments on commit 5484d75

Please sign in to comment.