You can use Anthropic as LLM provider in RAGChat. To use an Anthropic model, first initialize RAGChat with the Anthropic model:

import { RAGChat, anthropic } from "@upstash/rag-chat";

export const ragChat = new RAGChat({
  model: anthropic("claude-3-5-sonnet-20240620",{apiKey: "ANTHROPIC_AI_KEY"}),
});