Skip to content

Commit e6b6d0b

Browse files
committed
Add pi-llama plugin install step; enable prettier format-on-save
- Add explicit `pi install github.com/huggingface/pi-llama` step to the llama+pi quick-start so users install the plugin before running `pi`. - Configure VS Code to format on save with Prettier (including for Svelte files), which accounts for the line-wrap reflow in +page.svelte.
1 parent 44cb8c3 commit e6b6d0b

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"files.associations": {
33
"*.css": "tailwindcss"
4+
},
5+
"editor.formatOnSave": true,
6+
"editor.defaultFormatter": "esbenp.prettier-vscode",
7+
"[svelte]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
49
}
510
}

src/routes/+page.svelte

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
let copied = $state(false);
5555
let isWindows = $state(false);
5656
const installCommand = $derived(
57-
isWindows ? 'irm https://llama.app/install.ps1 | iex' : 'curl -LsSf https://llama.app/install.sh | sh'
57+
isWindows
58+
? 'irm https://llama.app/install.ps1 | iex'
59+
: 'curl -LsSf https://llama.app/install.sh | sh'
5860
);
5961
6062
$effect(() => {
@@ -155,7 +157,10 @@
155157
><span class="opacity-50"># 1. Serve a model</span>
156158
llama serve
157159

158-
<span class="opacity-50"># 2. Run Pi, it will autodiscover it</span>
160+
<span class="opacity-50"># 2. Install the pi-llama plugin</span>
161+
pi install github.com/huggingface/pi-llama
162+
163+
<span class="opacity-50"># 3. Run Pi, everything is set</span>
159164
pi</code
160165
></pre>
161166
<div

0 commit comments

Comments
 (0)