Skip to content

Commit 03cd40d

Browse files
Merge pull request #347 from nocodb/fix-couple-issues
2 parents 3182830 + 16475ba commit 03cd40d

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

app/api/chat/route.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { ProvideLinksToolSchema } from '@/lib/ai-tools/inkeep-qa-schema';
22
import { SearchDocsToolSchema, searchAndFetchDocs } from '@/lib/ai-tools/search-and-fetch';
33
import { convertToModelMessages, stepCountIs, streamText } from 'ai';
44
import { systemPrompt } from '@/lib/searchPrompt';
5-
import { validateRateLimit } from '@/utils/rateLimit';
65
import { createModel } from '@/lib/ai-models';
7-
6+
import { validateRateLimit } from '@/utils/rateLimit';
87

98
export async function POST(req: Request) {
109
const rateLimitError = validateRateLimit(req);
1110
if (rateLimitError) return rateLimitError;
11+
1212
let reqJson;
1313
try {
1414
reqJson = await req.json();
@@ -39,4 +39,4 @@ export async function POST(req: Request) {
3939
});
4040

4141
return result.toUIMessageStreamResponse();
42-
}
42+
}

app/blog/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import BlogCard from "@/components/blog/BlogCard";
33
import {Separator} from "@/components/ui/separator";
44
import Link from "next/link";
55
import Subscribe from "@/components/blog/Subscribe";
6-
import {SearchInput} from "@/components/blog/SearchInput";
76
import Image from "next/image";
87

98
export const metadata = {

components/blog/CustomToc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function CustomToc({toc}: { toc: TableOfContents }) {
77
const containerRef = useRef<HTMLDivElement>(null);
88
const minDepth = Math.min(...toc.map((item) => item.depth));
99
return (
10-
<div className="h-48 top-0 w-64 toc-container" ref={containerRef}>
10+
<div className="top-0 w-64 toc-container" ref={containerRef}>
1111
<div className="text-nc-content-grey-emphasis font-bold leading-6 mb-8 text-base">
1212
In this Blog
1313
</div>

components/blog/home/Navbar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ import {
1212
ChevronDown,
1313
Database,
1414
Code,
15-
MessageSquare,
1615
} from "lucide-react";
1716
import {
1817
SiDiscord,
19-
SiDiscordHex,
2018
SiDiscourse,
2119
SiGithub,
2220
SiReddit,

0 commit comments

Comments
 (0)