No models available.
+ {#if currentModel} + +No models available.
+ {/if} {:else} {@const selectedOption = getDisplayOption()} @@ -280,7 +350,7 @@ type="button" class={cn( `inline-grid cursor-pointer grid-cols-[1fr_auto_1fr] items-center gap-1.5 rounded-sm bg-muted-foreground/10 px-1.5 py-1 text-xs transition hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60`, - !isCurrentModelInCache() + !isCurrentModelInCache ? 'bg-red-400/10 !text-red-400 hover:bg-red-400/20 hover:text-red-400' : forceForegroundText ? 'text-foreground' @@ -294,12 +364,21 @@ >{selectedOption.model}
+No models found.
{/if} - {#each filteredOptions as option, index (option.id)} - {@const status = getModelStatus(option.model)} - {@const isLoaded = status === ServerModelStatus.LOADED} - {@const isLoading = status === ServerModelStatus.LOADING} - {@const isSelected = currentModel === option.model || activeId === option.id} - {@const isHighlighted = index === highlightedIndex} -+ Favourite models +
+ {:else if group.orgName} +- {option.model} -
+ {group.orgName} + + {/if} -Loading model...
-Unload model
-