File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,13 @@ import { ProvideLinksToolSchema } from '@/lib/ai-tools/inkeep-qa-schema';
22import { SearchDocsToolSchema , searchAndFetchDocs } from '@/lib/ai-tools/search-and-fetch' ;
33import { convertToModelMessages , stepCountIs , streamText } from 'ai' ;
44import { systemPrompt } from '@/lib/searchPrompt' ;
5- import { validateRateLimit } from '@/utils/rateLimit' ;
65import { createModel } from '@/lib/ai-models' ;
7-
6+ import { validateRateLimit } from '@/utils/rateLimit' ;
87
98export 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+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import BlogCard from "@/components/blog/BlogCard";
33import { Separator } from "@/components/ui/separator" ;
44import Link from "next/link" ;
55import Subscribe from "@/components/blog/Subscribe" ;
6- import { SearchInput } from "@/components/blog/SearchInput" ;
76import Image from "next/image" ;
87
98export const metadata = {
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change @@ -12,11 +12,9 @@ import {
1212 ChevronDown ,
1313 Database ,
1414 Code ,
15- MessageSquare ,
1615} from "lucide-react" ;
1716import {
1817 SiDiscord ,
19- SiDiscordHex ,
2018 SiDiscourse ,
2119 SiGithub ,
2220 SiReddit ,
You can’t perform that action at this time.
0 commit comments