Reusable model browser UI component with fuzzy search, role chips, and metadata columns.
// Source: https://github.com/can1357/oh-my-pi | License: MIT | Copyright 2025 Mario Zechner
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Frameless, reusable model browser: a fuzzy search row, a windowed model
* list with role chips and metadata columns, and a selection detail block.
*
* Hosts own the surrounding chrome and the data scope — the fullscreen
* /models hub ({@link ./model-hub}) feeds it scope-filtered items plus role
* state, while the advisor config overlay embeds it as a plain "pick one
* model" list.
*/
import { ThinkingLevel } from "@oh-my-pi/pi-agent-core";
import type { Model } from "@oh-my-pi/pi-ai";
import { buildModel } from "@oh-my-pi/pi-catalog/build";
import { getEffectiveTokenCost, getModelPricingStatus, modelsAreEqual } from "@oh
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key