Skip to content

Commit bae8f0d

Browse files
committed
Use raw.githubusercontent.com permalink for model URLs
Point to commit e23a50e where the files still exist on main. No new branch or repo needed — git history serves as permanent storage. raw.githubusercontent.com serves: - Access-Control-Allow-Origin: * - Cross-Origin-Resource-Policy: cross-origin https://claude.ai/code/session_01T73Yphu4y2U3c3ctCcHVPf
1 parent 09ec108 commit bae8f0d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/contexts/MaiaEngineContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const MaiaEngineContextProvider: React.FC<{ children: ReactNode }> = ({
3333
const model = new Maia({
3434
model:
3535
process.env.NEXT_PUBLIC_MAIA_MODEL_URL ??
36-
'https://raw.githubusercontent.com/CSSLab/maia-platform-frontend/models/maia2/maia_rapid.onnx',
36+
'https://raw.githubusercontent.com/CSSLab/maia-platform-frontend/e23a50e/public/maia2/maia_rapid.onnx',
3737
setStatus: setStatus,
3838
setProgress: setProgress,
3939
setError: setError,

src/lib/engine/stockfish.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,11 @@ const setupStockfish = (): Promise<StockfishWeb> => {
350350
locateFile: (name: string) => `/stockfish/${name}`,
351351
})
352352
.then(async (instance: StockfishWeb) => {
353-
// NNUE weights are hosted on a separate branch and served via
354-
// raw.githubusercontent.com (CORS + COEP compatible).
353+
// NNUE weights served via raw.githubusercontent.com permalink (CORS + COEP compatible).
355354
// Override with NEXT_PUBLIC_STOCKFISH_NNUE_BASE_URL for self-hosted deployments.
356355
const nnueBaseUrl =
357356
process.env.NEXT_PUBLIC_STOCKFISH_NNUE_BASE_URL ??
358-
'https://raw.githubusercontent.com/CSSLab/maia-platform-frontend/models/stockfish'
357+
'https://raw.githubusercontent.com/CSSLab/maia-platform-frontend/e23a50e/public/stockfish'
359358
// Load NNUE models before resolving
360359
Promise.all([
361360
fetch(`${nnueBaseUrl}/${instance.getRecommendedNnue(0)}`),

0 commit comments

Comments
 (0)