diff --git a/examples/browser/package.json b/examples/browser/package.json index aef6fcbab1072..5cfdc9277b381 100644 --- a/examples/browser/package.json +++ b/examples/browser/package.json @@ -27,8 +27,8 @@ "@theia/ai-code-completion": "1.54.0", "@theia/ai-core": "1.54.0", "@theia/ai-history": "1.54.0", - "@theia/ai-ollama": "1.54.0", "@theia/ai-llamafile": "1.54.0", + "@theia/ai-ollama": "1.54.0", "@theia/ai-openai": "1.54.0", "@theia/ai-terminal": "1.54.0", "@theia/ai-workspace-agent": "1.54.0", diff --git a/examples/electron/package.json b/examples/electron/package.json index 04482481be284..5dcb9b9007a93 100644 --- a/examples/electron/package.json +++ b/examples/electron/package.json @@ -31,6 +31,7 @@ "@theia/ai-code-completion": "1.54.0", "@theia/ai-core": "1.54.0", "@theia/ai-history": "1.54.0", + "@theia/ai-llamafile": "1.54.0", "@theia/ai-ollama": "1.54.0", "@theia/ai-openai": "1.54.0", "@theia/ai-terminal": "1.54.0", diff --git a/examples/electron/tsconfig.json b/examples/electron/tsconfig.json index e36e0e73f4457..9199410a96828 100644 --- a/examples/electron/tsconfig.json +++ b/examples/electron/tsconfig.json @@ -26,6 +26,9 @@ { "path": "../../packages/ai-history" }, + { + "path": "../../packages/ai-llamafile" + }, { "path": "../../packages/ai-ollama" }, diff --git a/packages/ai-llamafile/src/browser/llamafile-command-contribution.ts b/packages/ai-llamafile/src/browser/llamafile-command-contribution.ts index 7e2b9f881f3e0..ed829406118b6 100644 --- a/packages/ai-llamafile/src/browser/llamafile-command-contribution.ts +++ b/packages/ai-llamafile/src/browser/llamafile-command-contribution.ts @@ -64,6 +64,7 @@ export class LlamafileCommandContribution implements CommandContribution { this.llamafileManager.startServer(result.label); } catch (error) { console.error('Something went wrong during the llamafile start.', error); + this.messageService.error(`Something went wrong during the llamafile start: ${error.message}.\nFor more information, see the console.`); } } }));