import { PropertyReference, LinkToCopilotCloud } from "@/components";
import { Tabs } from "nextra/components";
import { Callout } from "nextra/components";
Copilot Runtime adapter for Groq.
import { CopilotRuntime, GroqAdapter } from "@copilotkit/runtime";
import { Groq } from "groq-sdk";
const groq = new Groq({ apiKey: process.env["GROQ_API_KEY"] });
const copilotKit = new CopilotRuntime();
const llmAdapter = new GroqAdapter({ groq, model: "<model-name>" });
return copilotKit.streamHttpServerResponse(req, res, llmAdapter);