import { genkit } from "genkit";
import { anthropic } from "@genkit-ai/anthropic";
const ai = genkit({
plugins: [anthropic({ apiKey: false })],
});
const response = await ai.generate({
model: anthropic.model("claude-haiku-4-5"),
prompt: "Tell me a joke.",
config: {
apiKey: process.env.ANTHROPIC_API_KEY,
}
});