change model display name
This commit is contained in:
1 parent
d08a857492
commit
50e09bbc36
2 files changed
+8
-17
No files matched your search
@@ -50,17 +50,8 @@ function scrollDownForce() {
|
||||
}
|
||||
|
||||
function prettyModelName(model) {
|
||||
if (!model) return '?';
|
||||
model = model.split('claude-').join('');
|
||||
if (model == 'sonnet') return 'Sonnet';
|
||||
if (model == 'sonnet-4-5') return 'Sonnet 4.5';
|
||||
if (model == 'sonnet-4-6') return 'Sonnet 4.6';
|
||||
if (model == 'opus') return 'Opus';
|
||||
if (model == 'opus-4-5') return 'Opus 4.5';
|
||||
if (model == 'opus-4-6') return 'Opus 4.6';
|
||||
if (model == 'haiku') return 'Haiku';
|
||||
if (model == 'haiku-4-5') return 'Haiku 4.5';
|
||||
const m = model.split(`:`);
|
||||
let m = (model || `?`).split(`:`);
|
||||
m = m[m.length - 1].split(`/`);
|
||||
return m[m.length - 1];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user