Skip to content
Merged
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: 3 additions & 3 deletions app/api/chat/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { ProvideLinksToolSchema } from '@/lib/ai-tools/inkeep-qa-schema';
import { SearchDocsToolSchema, searchAndFetchDocs } from '@/lib/ai-tools/search-and-fetch';
import { convertToModelMessages, stepCountIs, streamText } from 'ai';
import { systemPrompt } from '@/lib/searchPrompt';
import { validateRateLimit } from '@/utils/rateLimit';
import { createModel } from '@/lib/ai-models';

import { validateRateLimit } from '@/utils/rateLimit';

export async function POST(req: Request) {
const rateLimitError = validateRateLimit(req);
if (rateLimitError) return rateLimitError;

let reqJson;
try {
reqJson = await req.json();
Expand Down Expand Up @@ -39,4 +39,4 @@ export async function POST(req: Request) {
});

return result.toUIMessageStreamResponse();
}
}
1 change: 0 additions & 1 deletion app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import BlogCard from "@/components/blog/BlogCard";
import {Separator} from "@/components/ui/separator";
import Link from "next/link";
import Subscribe from "@/components/blog/Subscribe";
import {SearchInput} from "@/components/blog/SearchInput";
import Image from "next/image";

export const metadata = {
Expand Down
2 changes: 1 addition & 1 deletion components/blog/CustomToc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function CustomToc({toc}: { toc: TableOfContents }) {
const containerRef = useRef<HTMLDivElement>(null);
const minDepth = Math.min(...toc.map((item) => item.depth));
return (
<div className="h-48 top-0 w-64 toc-container" ref={containerRef}>
<div className="top-0 w-64 toc-container" ref={containerRef}>
<div className="text-nc-content-grey-emphasis font-bold leading-6 mb-8 text-base">
In this Blog
</div>
Expand Down
2 changes: 0 additions & 2 deletions components/blog/home/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import {
ChevronDown,
Database,
Code,
MessageSquare,
} from "lucide-react";
import {
SiDiscord,
SiDiscordHex,
SiDiscourse,
SiGithub,
SiReddit,
Expand Down
Loading