Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.54 KB

File metadata and controls

67 lines (52 loc) · 1.54 KB
title <CopilotKit />
description Provides the Copilot context to its children.

This component provides the Copilot context to its children. It can be configured either with a chat API endpoint or a CopilotApiConfig.

The backend can use OpenAI, or you can bring your own LLM. For examples of the backend api implementation, see `examples/next-openai` or the [backend docs](https://docs.copilotkit.ai/getting-started/quickstart-backend). ```jsx CopilotKit Example import { CopilotKit } from "@copilotkit/react-core";

</RequestExample>

## Example usage

```jsx
<CopilotKit url="https://your.copilotkit.api">
<App />
</CopilotKit>

Props

The endpoint for the chat API. Additional headers to be sent with the request.

For example:

{
  'Authorization': 'Bearer your_token_here'
}
Additional body params to be sent with the request.

For example:

{
  'message': 'Hello, world!'
}
The children to be rendered within the CopilotKit.