The tooltip showed five models and folded the rest into a count, and no other view shows a past instance's models. D12 asks for tokens and API value by model for every instance, so the tooltip now lists all of them. Refs #14
This commit is contained in:
@@ -22,9 +22,9 @@ public sealed partial class DataTooltip
|
||||
new("Output", Count(row.Tokens.Output)), new("Reasoning (in output)", Count(row.Tokens.ReasoningOutput)),
|
||||
new("API list value", Display.Money(row.ApiValue)), new("Unpriced tokens", Count(row.UnpricedTokens))
|
||||
};
|
||||
foreach (var model in row.Models.Take(5))
|
||||
if (row.Models.Count > 0) rows.Add(new("Models", row.Models.Count.ToString()));
|
||||
foreach (var model in row.Models)
|
||||
rows.Add(new(model.Model ?? "Unknown model", Count(model.Tokens.Total) + " · " + Display.Money(model.ApiValue)));
|
||||
if (row.Models.Count > 5) rows.Add(new("Other models", (row.Models.Count - 5).ToString()));
|
||||
rows.Add(new("Tokens per percent", row.ValuePerPercent is { } rate ? "≈ " + Display.Compact(rate.Tokens) +
|
||||
" · " + rate.Tokens.ToString("N2") : "No qualifying instance"));
|
||||
rows.Add(new("API value per percent", Display.Money(row.ValuePerPercent?.ApiValue)));
|
||||
|
||||
Reference in New Issue
Block a user