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
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
let copied = $state(false);
let isWindows = $state(false);
const installCommand = $derived(
isWindows ? 'irm https://llama.app/install.ps1 | iex' : 'curl -LsSf https://llama.app/install.sh | bash'
isWindows ? 'irm https://llama.app/install.ps1 | iex' : 'curl -LsSf https://llama.app/install.sh | sh'
);

$effect(() => {
Expand Down
3 changes: 1 addition & 2 deletions src/routes/models/[model]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
}

async function copyCommand(repo: string, quant: string) {
const cmd = `llama-server -hf ${repo}:${quant}`;
// TODO: should be `llama serve -hf ${repo}:${quant}`
const cmd = `llama serve -hf ${repo}:${quant}`;
const ok = await copyToClipboard(cmd);
if (!ok) {
toast.error('Could not copy to clipboard');
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/home.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { expect, test } from '@playwright/test';
test('home page loads with expected content', async ({ page }) => {
await page.goto('http://localhost:4173/');

await expect(page.getByText('curl -LsSf https://llama.app/install.sh | bash')).toBeVisible();
await expect(page.getByText('curl -LsSf https://llama.app/install.sh | sh')).toBeVisible();

const packageManagersLink = page.getByRole('link', { name: 'Package managers' });
await expect(packageManagersLink).toBeVisible();
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/page.svelte.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest';
import { render } from 'vitest-browser-svelte';
import HomePage from '../../src/routes/+page.svelte';

const INSTALL_COMMAND = 'curl -LsSf https://llama.app/install.sh | bash';
const INSTALL_COMMAND = 'curl -LsSf https://llama.app/install.sh | sh';

describe('+page.svelte', () => {
it('renders install command and package manager link', async () => {
Expand Down
Loading