Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix(llamacpp): link engine release notes to the versioned upstream release (#9466)
Akarshan Biswasd15915c7114a
diff --git a/web-app/src/containers/LlamacppEngineInfo.tsx b/web-app/src/containers/LlamacppEngineInfo.tsxindex 08e224c97..56aef0c95 100644--- a/web-app/src/containers/LlamacppEngineInfo.tsx+++ b/web-app/src/containers/LlamacppEngineInfo.tsx@@ -64,7 +64,9 @@ export function LlamacppEngineInfo() {</span></div><a- href={`${UPSTREAM_REPO}/releases/tag/${engine.tag}`}+ // The changelog is on the versioned release; the b<N> build tag+ // page carries only binaries.+ href={`${UPSTREAM_REPO}/releases/tag/v${engine.version}`}target="_blank"rel="noopener noreferrer"className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground"diff --git a/web-app/src/containers/__tests__/LlamacppEngineInfo.test.tsx b/web-app/src/containers/__tests__/LlamacppEngineInfo.test.tsxindex bbb804377..426cd8fbf 100644--- a/web-app/src/containers/__tests__/LlamacppEngineInfo.test.tsx+++ b/web-app/src/containers/__tests__/LlamacppEngineInfo.test.tsx@@ -36,8 +36,9 @@ describe('LlamacppEngineInfo', () => {})// A 40-char sha would wrap the row and buys nothing a reader can use; the- // link is what gets them to the full commit.- it('shortens the commit and links the build to its upstream release', async () => {+ // link is what gets them to the full commit. The changelog lives on the+ // versioned release (v0.5.0); the b<N> tag page is a bare build artifact.+ it('shortens the commit and links the version to its upstream release', async () => {getEngineVersion.mockResolvedValue(PIN)render(<LlamacppEngineInfo />)@@ -47,7 +48,7 @@ describe('LlamacppEngineInfo', () => {screen.getByRole('link', { name: /engineReleaseNotes/ })).toHaveAttribute('href',- 'https://github.com/ggml-org/llama.cpp/releases/tag/b11146'+ 'https://github.com/ggml-org/llama.cpp/releases/tag/v0.5.0')})