fix: assigned-only state, remove dead HfNodeModelPanel prop, deduplicate yaml example

This commit is contained in:
pyr0ball 2026-05-05 22:11:02 -07:00
parent 1521198cb1
commit 32872d1ec6
4 changed files with 2 additions and 16 deletions

View file

@ -110,12 +110,3 @@ imitate:
sample_endpoint: /api/listings sample_endpoint: /api/listings
text_fields: [title, description, seller_info] text_fields: [title, description, seller_info]
prompt_template: "Evaluate the trustworthiness of this listing and flag any red flags:\n\n{text}" prompt_template: "Evaluate the trustworthiness of this listing and flag any red flags:\n\n{text}"
- id: osprey
name: Osprey
icon: "📞"
description: Gov't hold-line automation
base_url: http://localhost:8520
sample_endpoint: /api/calls/recent
text_fields: [agency, issue, notes]
prompt_template: "Draft a concise summary of this government call record:\n\n{text}"

View file

@ -26,7 +26,7 @@ function serviceState(svcName: string): 'running' | 'stopped' | 'assigned-only'
const cap = props.gpu.compute_cap ?? 0 const cap = props.gpu.compute_cap ?? 0
if (cap < svc.min_compute_cap) return 'incompatible' if (cap < svc.min_compute_cap) return 'incompatible'
if (props.gpu.services_running.includes(svcName)) return 'running' if (props.gpu.services_running.includes(svcName)) return 'running'
if (props.gpu.services_assigned.includes(svcName)) return 'stopped' if (props.gpu.services_assigned.includes(svcName)) return 'assigned-only'
return 'available' return 'available'
} }

View file

@ -20,7 +20,6 @@ interface NodeProfile {
const props = defineProps<{ const props = defineProps<{
nodeId: string nodeId: string
servicesCatalog: Record<string, { min_compute_cap: number; max_mb: number; catalog_size: number }>
}>() }>()
const profile = ref<NodeProfile | null>(null) const profile = ref<NodeProfile | null>(null)

View file

@ -52,11 +52,7 @@ const showHf = ref(false)
</div> </div>
<OllamaModelPanel v-if="showOllama" :node-id="node.node_id" /> <OllamaModelPanel v-if="showOllama" :node-id="node.node_id" />
<HfNodeModelPanel <HfNodeModelPanel v-if="showHf" :node-id="node.node_id" />
v-if="showHf"
:node-id="node.node_id"
:services-catalog="node.services_catalog"
/>
</section> </section>
</template> </template>