File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/llamacpp-extension/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export async function listSupportedBackends(): Promise<
7777 supportedBackends . push ( 'macos-arm64' )
7878 }
7979
80- const { releases } = await _fetchReleasesWithFallback ( 'menloresearch' , 'llama.cpp' )
80+ const { releases } = await _fetchGithubReleases ( 'menloresearch' , 'llama.cpp' )
8181 releases . sort ( ( a , b ) => b . tag_name . localeCompare ( a . tag_name ) )
8282 releases . splice ( 10 ) // keep only the latest 10 releases
8383
@@ -153,7 +153,7 @@ export async function downloadBackend(
153153 const backendDir = await getBackendDir ( backend , version )
154154 const libDir = await joinPath ( [ llamacppPath , 'lib' ] )
155155
156- const downloadManager = ( window as any ) . core . extensionManager . getByName (
156+ const downloadManager = window . core . extensionManager . getByName (
157157 '@janhq/download-extension'
158158 )
159159
@@ -292,7 +292,7 @@ async function _getSupportedFeatures() {
292292 * Fetch releases with GitHub-first strategy and fallback to CDN on any error.
293293 * CDN endpoint is expected to mirror GitHub releases JSON shape.
294294 */
295- async function _fetchReleasesWithFallback (
295+ async function _fetchGithubReleases (
296296 owner : string ,
297297 repo : string
298298) : Promise < { releases : any [ ] ; source : 'github' | 'cdn' } > {
You can’t perform that action at this time.
0 commit comments