docs/snippets/llm-adapters.mdx
import { Callout } from "fumadocs-ui/components/callout"; import { TailoredContent, TailoredContentOption, } from "@/components/react/tailored-content.tsx"; import SelfHostingCopilotRuntimeCreateEndpoint from "@/snippets/self-hosting-copilot-runtime-create-endpoint.mdx"; import { FaCloud, FaServer } from "react-icons/fa"; import FindYourCopilotRuntime from "@/snippets/find-your-copilot-runtime.mdx";
LLM Adapters are responsible for executing the request with the LLM and standardizing the request/response format in a way that the Copilot Runtime can understand.
Currently, we support the following LLM adapters natively:
<TailoredContentOption id="self-hosted" title="Self-hosting" description="Learn to host CopilotKit's runtime yourself with your own backend." icon={<FaServer />}
<Steps> <Step> ## Find your CopilotRuntime instance <FindYourCopilotRuntime components={props.components} />
</Step>
<Step>
## Modify the used LLM Adapter
Use the example code below to tailor your CopilotRuntime instantiation to your desired llm adapter.
<SelfHostingCopilotRuntimeCreateEndpoint components={props.components} />
</Step>
<Step>
## Make further customizations
See the reference documentation linked above for further customization parameters.
</Step>