@kortyx/groq
v0.3.0
Published
Groq provider integration for Kortyx.
Readme
@kortyx/groq
Groq provider integration for Kortyx.
Install
pnpm add @kortyx/groqnpm install @kortyx/groqUsage
import { groq } from "@kortyx/groq";
import { useReason } from "kortyx";
export const answerNode = async ({ input }: { input: unknown }) => {
const result = await useReason({
id: "answer",
model: groq("llama-3.3-70b-versatile"),
input: String(input ?? ""),
stream: true,
emit: true,
});
return {
data: { text: result.text },
};
};Set GROQ_API_KEY or pass an explicit key:
import { createGroq } from "@kortyx/groq";
export const groq = createGroq({
apiKey: process.env.GROQ_API_KEY,
});Models
Kortyx ships autocomplete for:
llama-3.1-8b-instantllama-3.3-70b-versatileopenai/gpt-oss-120bopenai/gpt-oss-20bqwen/qwen3-32b
Arbitrary Groq-compatible model IDs are accepted as strings.
Documentation
License
Apache-2.0. See LICENSE.
