diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 84da3ae458ec1de42c4a19d6737e4367fd5944a5..700706f27108842cba7c5e081ab48f534fbf2542 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -9,7 +9,13 @@ export interface ApiOptions { function getToken(): string | null { if (typeof window === 'undefined') return null - return localStorage.getItem('nexus_token') + const ls = localStorage.getItem('nexus_token') + if (ls) return ls + try { + const m = document.cookie.match(/(?:^|;\s*)nexus_token=([^;]*)/) + if (m) return decodeURIComponent(m[1]) + } catch {} + return null } function setCookie(name: string, value: string, days: number) { diff --git a/opencode.json b/opencode.json new file mode 100644 index 0000000000000000000000000000000000000000..dc3f7dfd70b344e8beebadd5201d8fb55ebf3573 --- /dev/null +++ b/opencode.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://opencode.ai/config.json", + "provider": { + "mygateway": { + "npm": "@ai-sdk/openai-compatible", + "name": "My Custom Proxy", + "options": { + "baseURL": "https://opencode.ai/zen/v1" + }, + "models": { + "minimax-m3-free": { + "name": "Zen Minimax M3 Free" + }, + "mimo-v2.5-free": { + "name": "Zen Mimo V2.5 Free" + } + } + } + } +} \ No newline at end of file diff --git a/static/404.html b/static/404.html index 825c88d8d8839deca080cc67f2792bb35592cdf1..2e875ba83f686a28c6f1d3d52eaac99f6a299ede 100644 --- a/static/404.html +++ b/static/404.html @@ -1 +1 @@ -