Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions app/components/assistant-ui/attachment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,8 @@ const AttachmentUI: FC = () => {
return "Document";
case "file":
return "File";
default: {
const _exhaustiveCheck: never = type;
throw new Error(`Unknown attachment type: ${_exhaustiveCheck}`);
}
default:
return "File";
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
docId: l6eepr5ctjgrhdgupy3twr1t
---

<https://arxiv.org/pdf/2512.14982>
&lt;https://arxiv.org/pdf/2512.14982&gt;

When not using reasoning, repeating the input prompt improves performance for popular models (Gemini, GPT, Claude, and Deepseek) without increasing the number of generated tokens or latency.

Expand Down
5 changes: 3 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
weight: "100 900",
});

const SITE_URL =
process.env.NEXT_PUBLIC_SITE_URL || "https://involutionhell.com";
const SITE_URL = (
process.env.NEXT_PUBLIC_SITE_URL || "https://involutionhell.com"
).replace(/^["']|["']$/g, "");
const en_description =
"内卷地狱(Involution Hell)是一个由开发者发起的开源学习社区,专注算法、系统设计、工程实践与技术分享,帮助华人程序员高效成长,专注真实进步。Involution Hell is an open-source community empowering builders with real-world engineering.";

Expand Down Expand Up @@ -135,7 +136,7 @@
href="https://fonts.gstatic.com"
crossOrigin="anonymous"
/>
<link

Check warning on line 139 in app/layout.tsx

View workflow job for this annotation

GitHub Actions / build

Custom fonts not added in `pages/_document.js` will only load for a single page. This is discouraged. See: https://nextjs.org/docs/messages/no-page-custom-font
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap"
/>
Expand Down
12 changes: 11 additions & 1 deletion lib/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@ function convertSlugToPinyin(text: string) {
.join("-");
}

// fumadocs-mdx@11.x returns `files` as a lazy function,
// but fumadocs-core@15.8.x buildContentStorage calls files.map() directly.
// Eagerly resolve the files array to maintain compatibility.
const _fumaSource = docs.toFumadocsSource();
if (typeof _fumaSource.files === "function") {
(_fumaSource as { files: unknown }).files = (
_fumaSource.files as () => unknown[]
)();
}

export const source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
source: _fumaSource,
transformers: [
({ storage }) => {
for (const path of storage.getFiles()) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@ai-sdk/openai": "^2.0.32",
"@ai-sdk/openai-compatible": "^1.0.19",
"@ai-sdk/react": "^3.0.150",
"@assistant-ui/react": "^0.11.14",
"@assistant-ui/react-ai-sdk": "^1.1.0",
"@assistant-ui/react-markdown": "^0.11.0",
"@assistant-ui/react": "^0.12.24",
"@assistant-ui/react-ai-sdk": "^1.3.18",
"@assistant-ui/react-markdown": "^0.12.8",
"@auth/prisma-adapter": "^2.11.1",
"@aws-sdk/client-s3": "^3.932.0",
"@aws-sdk/s3-request-presigner": "^3.932.0",
Expand Down
Loading
Loading