MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / formatModel

Function formatModel

app/src/modules/utils.js:59–63  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

57}
58
59export function formatModel(m) {
60 if (!m) return '';
61 return m.replace(/^claude-/, '').replace(/-(\d)/g, ' $1').replace(/-/g, ' ')
62 .replace(/\b\w/g, c => c.toUpperCase());
63}
64
65export function formatTokens(n) {
66 if (!n) return '';

Callers 2

syncConfirmedModelFunction · 0.90
updateHeaderInfoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected