Skip to content

Commit

Permalink
Reverting back to deployment id to point to inference id instead of m…
Browse files Browse the repository at this point in the history
…odel id
  • Loading branch information
Samiul-TheSoccerFan committed Nov 6, 2024
1 parent 73aa920 commit 7ff2649
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const getCustomInferenceIdMap = (
? {
trainedModelId: model.service_settings.model_id,
isDeployable: model.service === Service.elser || model.service === Service.elasticsearch,
isDeployed: modelStatsById[model.service_settings.model_id]?.state === 'started',
isDeployed: modelStatsById[model.inference_id]?.state === 'started',
isDownloading: Boolean(downloadStates[model.service_settings.model_id]),
modelStats: modelStatsById[model.service_settings.model_id],
modelStats: modelStatsById[model.inference_id],
}
: {
trainedModelId: '',
Expand Down Expand Up @@ -104,7 +104,7 @@ export const useDetailsPageMappingsModelManagement = () => {
Record<string, TrainedModelStat['deployment_stats'] | undefined>
>((acc, { model_id: modelId, deployment_stats: stats }) => {
if (modelId && stats) {
acc[modelId] = stats;
acc[stats.deployment_id] = stats;
}
return acc;
}, {}) || {};
Expand Down

0 comments on commit 7ff2649

Please sign in to comment.