From 545a6a9913a6155f50ec77f14e53e9cc7da8985e Mon Sep 17 00:00:00 2001 From: Eugen Neufeld Date: Thu, 10 Oct 2024 17:14:06 +0200 Subject: [PATCH] more review comments --- examples/browser/package.json | 2 +- examples/electron/package.json | 1 + examples/electron/tsconfig.json | 3 +++ .../ai-llamafile/src/browser/llamafile-command-contribution.ts | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) 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.`); } } }));