-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: model hub revamp UI * chore: model description - consistent markdown css * chore: add model versions dropdown * chore: integrate APIs - model sources * chore: update model display name * chore: lint fix * chore: page transition animation * feat: model search dropdown - deeplink * chore: bump cortex version * chore: add remote model sources * chore: model download state * chore: fix model metadata label * chore: polish model detail page markdown * test: fix test cases * chore: initialize default Hub model sources * chore: fix model stats * chore: clean up click outside and inside hooks * feat: change hub banner * chore: lint fix * chore: fix css long model id
- Loading branch information
1 parent
261b44d
commit 83f0908
Showing
97 changed files
with
3,200 additions
and
872 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/** | ||
* GGUF Metadata of the model source | ||
*/ | ||
export interface GGUF { | ||
architecture: string | ||
bos_token: string | ||
chat_template: string | ||
context_length: number | ||
eos_token: string | ||
total: number | ||
} | ||
|
||
/** | ||
* Card Metadata of the model source | ||
*/ | ||
export interface CardData { | ||
license: string | ||
pipeline_tag: string | ||
} | ||
|
||
/** | ||
* Model Metadata of the model source | ||
*/ | ||
export interface Metadata { | ||
author: string | ||
cardData: CardData | ||
createdAt: string | ||
description: string | ||
disabled: boolean | ||
downloads: number | ||
gated: boolean | ||
gguf: GGUF | ||
id: string | ||
inference: string | ||
lastModified: string | ||
likes: number | ||
modelId: string | ||
pipeline_tag: string | ||
private: boolean | ||
sha: string | ||
siblings: Array<{ | ||
rfilename: string | ||
size: number | ||
}> | ||
spaces: string[] | ||
tags: string[] | ||
usedStorage: number | ||
apiKey?: string | ||
} | ||
|
||
/** | ||
* Model source sibling information | ||
*/ | ||
export interface ModelSibling { | ||
id: string | ||
size: number | ||
} | ||
|
||
/** | ||
* Model source object | ||
*/ | ||
export interface ModelSource { | ||
id: string | ||
metadata: Metadata | ||
models: ModelSibling[] | ||
type?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,18 @@ | ||
import { expect } from '@playwright/test' | ||
import { page, test, TIMEOUT } from '../config/fixtures' | ||
|
||
test('Select GPT model from Hub and Chat with Invalid API Key', async ({ | ||
hubPage, | ||
}) => { | ||
await hubPage.navigateByMenu() | ||
await hubPage.verifyContainerVisible() | ||
|
||
// Select the first GPT model | ||
await page | ||
.locator('[data-testid^="use-model-btn"][data-testid*="gpt"]') | ||
.first() | ||
.click() | ||
|
||
await page.getByTestId('txt-input-chat').fill('dummy value') | ||
|
||
test('show onboarding screen without any threads created or models downloaded', async () => { | ||
await page.getByTestId('Thread').first().click({ | ||
timeout: TIMEOUT, | ||
}) | ||
const denyButton = page.locator('[data-testid="btn-deny-product-analytics"]') | ||
|
||
if ((await denyButton.count()) > 0) { | ||
await denyButton.click({ force: true }) | ||
} else { | ||
await page.getByTestId('btn-send-chat').click({ force: true }) | ||
} | ||
|
||
await page.waitForFunction( | ||
() => { | ||
const loaders = document.querySelectorAll('[data-testid$="loader"]') | ||
return !loaders.length | ||
}, | ||
{ timeout: TIMEOUT } | ||
) | ||
const onboardScreen = page.getByTestId('onboard-screen') | ||
await expect(onboardScreen).toBeVisible({ | ||
timeout: TIMEOUT, | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.9-rc4 | ||
1.0.9-rc5 |
Oops, something went wrong.