Show how each bot message was generated
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]>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user