Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions web/console/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ body:has(.public-page) {
--pub-line-strong: #d8d8dc;
--pub-code-bg: #f6f6f6;
--pub-live: #1a7f37;
--pub-demand: #c62828;
color-scheme: light;
display: block;
min-height: 100vh;
Expand Down Expand Up @@ -778,6 +779,11 @@ body:has(.public-page) {
font-size: 14px;
}

.model-state .availability.demand {
color: var(--pub-demand);
font-weight: 600;
}

.model-state .speed {
color: var(--pub-secondary);
font-size: 12.5px;
Expand All @@ -800,6 +806,10 @@ body:has(.public-page) {
background: var(--pub-live);
}

.dot.demand {
background: var(--pub-demand);
}

.application form {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
Expand Down
10 changes: 7 additions & 3 deletions web/console/components/PublicStatusPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ function ModelRow({
}) {
const waitlisted = model.availability.state === "waitlist";
const live = model.availability.state === "available";
const highDemand = model.availability.state === "limited";
const discount = comparisonDiscountPercent(model);
return (
<article className={`model-row${active ? " active" : ""}`}>
Expand Down Expand Up @@ -363,8 +364,11 @@ function ModelRow({
{discount ? <span className="cheaper">~{discount}% cheaper</span> : null}
</div>
<div className="model-state">
<p className="availability">
<span className={`dot${live ? " live" : ""}`} aria-hidden="true" />
<p className={`availability${highDemand ? " demand" : ""}`}>
<span
className={`dot${live ? " live" : ""}${highDemand ? " demand" : ""}`}
aria-hidden="true"
/>
{availabilityLabel(model)}
</p>
<p className="speed">{speedLabel(model)}</p>
Expand All @@ -381,7 +385,7 @@ function availabilityLabel(model: PublicCatalogModel) {
case "available":
return "Available now";
case "limited":
return "Limited right now";
return "High demand";
case "waitlist":
return "Available on request";
default:
Expand Down
2 changes: 1 addition & 1 deletion web/console/lib/demoNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type DemoAvail = {
};

const DEMO_AVAILABILITY: Record<string, DemoAvail> = {
"minimax-h3": { state: "available", nodes: 14, tps: 8 },
"minimax-h3": { state: "limited", nodes: 14, tps: 8 },
"llama-3.1-8b-instruct": { state: "available", nodes: 58, tps: 34 },
"qwen2.5-7b-instruct": { state: "available", nodes: 67, tps: 31 },
"deepseek-r1-distill-llama-8b": { state: "available", nodes: 42, tps: 29 },
Expand Down
8 changes: 5 additions & 3 deletions web/console/test/console.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ describe("console components", () => {

const ranked = withDemoModelAvailability(mergeShowcaseModels(thin.models), 0);
expect(ranked[0].model_id).toBe("minimax-h3");
expect(ranked[0].availability.state).toBe("available");
expect(ranked[0].availability.state).toBe("limited");
expect(ranked.find((model) => model.model_id === "qwen2.5-7b-instruct")?.availability.state).toBe(
"available"
);
Expand All @@ -219,8 +219,10 @@ describe("console components", () => {
expect(figures.getByText("7")).toBeInTheDocument();
expect(container.querySelectorAll(".map-cell.hot").length).toBeGreaterThan(10);
expect(screen.getAllByText("Available now").length).toBeGreaterThan(3);
const minimaxRow = within(modelRowByName(container, "MiniMax H3"));
expect(minimaxRow.getByText("Available now")).toBeInTheDocument();
const minimaxEl = modelRowByName(container, "MiniMax H3");
expect(within(minimaxEl).getByText("High demand")).toBeInTheDocument();
expect(minimaxEl.querySelector(".availability.demand")).not.toBeNull();
expect(minimaxEl.querySelector(".dot.demand")).not.toBeNull();
});

it("omits the comparison entirely when a manifest has no market numbers", () => {
Expand Down