feat: add usage-stats display mode to In-Flight Monitor action
This commit is contained in:
@@ -17,7 +17,7 @@ export function registerDataSources(): void {
|
||||
let items: DataSourceItem[] = [];
|
||||
try {
|
||||
const models = await fetchModels(cfgFromSettings(settings));
|
||||
items = models.map((m) => ({ label: `${m.id} (${m.status})`, value: m.id }));
|
||||
items = [{ label: "All models", value: "all" }, ...models.map((m) => ({ label: `${m.id} (${m.status})`, value: m.id }))];
|
||||
} catch {
|
||||
items = [];
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ export interface InflightRenderOptions {
|
||||
}
|
||||
|
||||
export function renderInflight(opts: InflightRenderOptions): string {
|
||||
const name = escapeXml(shorten(opts.modelName));
|
||||
const name = escapeXml(shorten(opts.modelName === "all" ? "ALL MODELS" : opts.modelName));
|
||||
|
||||
if (opts.offline) {
|
||||
return frame("#10131a", [
|
||||
|
||||
Reference in New Issue
Block a user