Every bot message gets an info button that opens its details: the provider and model behind it, tokens and cost, the job that ran it, each model used and every call in order. Each model call now records how it was made in token_usages.settings (generation settings sent, whose settings they were, pinned or automatic model, fallbacks), shown per model in the modal. Live replies now carry their token usage, from the job's push and the live relay alike, so it shows without a reload. Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 lines
301 B
TypeScript
10 lines
301 B
TypeScript
import { Harnesses } from "@/src/dict/harness-dict";
|
|
|
|
/**
|
|
* What a harness is called in a message's details: its title in Settings,
|
|
* under Models.
|
|
*/
|
|
export default function harnessLabel({ harness }: { harness: string }) {
|
|
return Harnesses.find((h) => h.value == harness)?.title || harness;
|
|
}
|