Summary
After PR #4211 (issue #4209), the model catalog entity provider emits AiModelServerAPI entities with spec.type: 'ai-model-server' instead of the previous Resource entities with spec.type: 'ai-model' (plus Component and API entities). The ai-experience plugin still queries for the old entity shapes and needs to be updated.
Affected code
-
plugins/ai-experience-backend/src/services/ModelService/ModelService.ts:73-74 — queries { kind: 'Resource', 'spec.type': 'ai-model' }, which will return zero results after the entity provider change.
-
plugins/ai-experience/src/components/ModelSection/ModelSection.tsx:54-55 — builds a catalog link with filters[kind]=resource&filters[type]=ai-model, which will show no results in the UI.
What to change
Update both locations to query for { kind: 'AiModelServerAPI', 'spec.type': 'ai-model-server' } and adjust any response handling for the new entity shape (models are now in spec.models.available instead of being separate Resource entities).
Context
Summary
After PR #4211 (issue #4209), the model catalog entity provider emits
AiModelServerAPIentities withspec.type: 'ai-model-server'instead of the previousResourceentities withspec.type: 'ai-model'(plusComponentandAPIentities). The ai-experience plugin still queries for the old entity shapes and needs to be updated.Affected code
plugins/ai-experience-backend/src/services/ModelService/ModelService.ts:73-74— queries{ kind: 'Resource', 'spec.type': 'ai-model' }, which will return zero results after the entity provider change.plugins/ai-experience/src/components/ModelSection/ModelSection.tsx:54-55— builds a catalog link withfilters[kind]=resource&filters[type]=ai-model, which will show no results in the UI.What to change
Update both locations to query for
{ kind: 'AiModelServerAPI', 'spec.type': 'ai-model-server' }and adjust any response handling for the new entity shape (models are now inspec.models.availableinstead of being separate Resource entities).Context
AiModelServerAPIkind