Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions web-app/src/lib/__tests__/model-logo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('iconKeyLogoSrc', () => {
'bytedance',
'inclusionai',
'nanbeige',
'ornith',
]
for (const key of keys) {
expect(iconKeyLogoSrc(key), `missing logo for "${key}"`).toBeTruthy()
Expand Down Expand Up @@ -99,6 +100,9 @@ describe('modelFamilyLogoSrc', () => {
expect(modelFamilyLogoSrc('unsloth/MiniMax-M2.7-GGUF')).toBe(
'/svg/minimax.svg'
)
expect(modelFamilyLogoSrc('AtomicChat/Ornith-1.5-35B-A3B-GGUF')).toBe(
'/images/model-provider/ornith.webp'
)
})

it('keeps Bonsai on its own mark rather than the Qwen base it was built from', () => {
Expand Down
2 changes: 2 additions & 0 deletions web-app/src/lib/model-logo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const FAMILY_LOGO_RULES: Array<[RegExp, string]> = [
[/gemma/i, '/svg/google-color.svg'],
[/\bglm\b|chatglm/i, '/svg/zai.svg'],
[/bonsai/i, '/images/model-provider/prism-ml.webp'],
[/ornith/i, '/images/model-provider/ornith.webp'],
[/qwen|qwq/i, '/svg/qwen-color.svg'],
[/(?<!o)llama/i, '/svg/meta-color.svg'],
[/mi[sx]tral|magistral|ministral|codestral|devstral/i, '/images/model-provider/mistral.svg'],
Expand Down Expand Up @@ -64,6 +65,7 @@ const ICON_KEY_LOGOS: Readonly<Record<string, string>> = {
prism: '/images/model-provider/prism-ml.webp',
inclusionai: '/images/model-provider/inclusionai.webp',
nanbeige: '/images/model-provider/nanbeige.webp',
ornith: '/images/model-provider/ornith.webp',
huggingface: '/images/model-provider/huggingface.svg',
}

Expand Down