diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 002a2cf95..bd1c66601 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -12,7 +12,7 @@ "watch": "vite --mode development build -w" }, "dependencies": { - "@podman-desktop/ui-svelte": "1.10.3", + "@podman-desktop/ui-svelte": "0.0.202406111514-622e691", "tinro": "^0.6.12" }, "devDependencies": { diff --git a/packages/frontend/src/pages/Playground.spec.ts b/packages/frontend/src/pages/Playground.spec.ts index 460ed39a7..2dbebd825 100644 --- a/packages/frontend/src/pages/Playground.spec.ts +++ b/packages/frontend/src/pages/Playground.spec.ts @@ -109,48 +109,7 @@ test('should display playground and model names in header', async () => { }); }); -test('should display playground and parameters', async () => { - vi.mocked(studioClient.getCatalog).mockResolvedValue({ - models: [ - { - id: 'model-1', - name: 'Model 1', - }, - ] as ModelInfo[], - recipes: [], - categories: [], - }); - const customConversations = writable([ - { - id: 'playground-1', - name: 'Playground 1', - modelId: 'model-1', - messages: [], - }, - ]); - vi.mocked(conversationsStore).conversations = customConversations; - vi.mocked(inferenceServersStore).inferenceServers = readable([ - { - models: ['model-1'], - } as unknown as InferenceServer, - ]); - render(Playground, { - playgroundId: 'playground-1', - }); - - await waitFor(async () => { - const parameters = await screen.findByLabelText('parameters'); - expect(parameters.children.length).toBe(3); - const temperatureTooltip = await within(parameters.children[0] as HTMLElement).findByLabelText('tooltip'); - expect(temperatureTooltip).toBeInTheDocument(); - const maxTokensTooltip = await within(parameters.children[1] as HTMLElement).findByLabelText('tooltip'); - expect(maxTokensTooltip).toBeInTheDocument(); - const topPTooltip = await within(parameters.children[2] as HTMLElement).findByLabelText('tooltip'); - expect(topPTooltip).toBeInTheDocument(); - }); -}); - -test('send prompt should be enabled initially', async () => { +test('send prompt should be enabld initially', async () => { vi.mocked(studioClient.getCatalog).mockResolvedValue({ models: [ { diff --git a/packages/frontend/src/pages/Playground.svelte b/packages/frontend/src/pages/Playground.svelte index 5a3ab44b3..db3a480f5 100644 --- a/packages/frontend/src/pages/Playground.svelte +++ b/packages/frontend/src/pages/Playground.svelte @@ -201,9 +201,7 @@ function getSendPromptTitle(sendEnabled: boolean, status?: string, health?: stri - - - +
What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output @@ -217,9 +215,7 @@ function getSendPromptTitle(sendEnabled: boolean, status?: string, health?: stri
- - - +
The maximum number of tokens that can be generated in the chat completion. @@ -232,9 +228,7 @@ function getSendPromptTitle(sendEnabled: boolean, status?: string, health?: stri
- - - +
An alternative to sampling with temperature, where the model considers the results of the diff --git a/yarn.lock b/yarn.lock index 06d617408..b2a53c7cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -401,16 +401,16 @@ resolved "https://registry.yarnpkg.com/@podman-desktop/tests-playwright/-/tests-playwright-1.10.3.tgz#e0e7068b604cd45b537c53a1bce67c8f716ac7fe" integrity sha512-pYB9uniwAUNzCPtVqXvejuI1m7GJRjhSAZq4NFW99nm5X2e17c2h0n4wvJDsDHCMs3sKN15ftdKRxdgi13r0mQ== -"@podman-desktop/ui-svelte@1.10.3": - version "1.10.3" - resolved "https://registry.yarnpkg.com/@podman-desktop/ui-svelte/-/ui-svelte-1.10.3.tgz#f92b05758ac4d0408cdde48d9d01f41c433b1330" - integrity sha512-Tf7XrUTvZdER/xqR0pYAxVWI7IfJfUV39D87nmTJxlfo/SllVhqp6YA5z2p/uqTCStbirBNsn/j0tOs/n5Uu2Q== +"@podman-desktop/ui-svelte@0.0.202406111514-622e691": + version "0.0.202406111514-622e691" + resolved "https://registry.yarnpkg.com/@podman-desktop/ui-svelte/-/ui-svelte-0.0.202406111514-622e691.tgz#af74679d7907cb8abb9a6fb8df7ae8fbf87f7789" + integrity sha512-Z6VP724oWGlhNIsTNRwzuSR/B39PNxWSGZVMhmPlCM8U24av/1uGW5VxuO9ed/5ook19/S6BCw31cFNnPFuusg== dependencies: "@fortawesome/fontawesome-free" "^6.5.2" "@fortawesome/free-brands-svg-icons" "^6.5.2" "@fortawesome/free-regular-svg-icons" "^6.5.2" "@fortawesome/free-solid-svg-icons" "^6.5.2" - humanize-duration "^3.32.0" + humanize-duration "^3.32.1" moment "^2.30.1" svelte-fa "^4.0.2" @@ -2612,7 +2612,7 @@ human-signals@^5.0.0: resolved "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -humanize-duration@^3.32.0, humanize-duration@^3.32.1: +humanize-duration@^3.32.1: version "3.32.1" resolved "https://registry.yarnpkg.com/humanize-duration/-/humanize-duration-3.32.1.tgz#922beff5da36fb1cee3de26ada24c592b0fe519b" integrity sha512-inh5wue5XdfObhu/IGEMiA1nUXigSGcaKNemcbLRKa7jXYGDZXr3LoT9pTIzq2hPEbld7w/qv9h+ikWGz8fL1g== @@ -4292,16 +4292,7 @@ stop-iteration-iterator@^1.0.0: dependencies: internal-slot "^1.0.4" -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4353,14 +4344,7 @@ string_decoder@^1.1.1: dependencies: safe-buffer "~5.2.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -4985,16 +4969,7 @@ winreg@^1.2.5: resolved "https://registry.yarnpkg.com/winreg/-/winreg-1.2.5.tgz#b650383e89278952494b5d113ba049a5a4fa96d8" integrity sha512-uf7tHf+tw0B1y+x+mKTLHkykBgK2KMs3g+KlzmyMbLvICSHQyB/xOFjTT8qZ3oeTFyU7Bbj4FzXitGG6jvKhYw== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": - version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==