LangChain.js supports calling JigsawStack Prompt Engine LLMs.

Setup

  • Set up an account (Get started for free)
  • Create and retrieve your API key

Credentials

export JIGSAWSTACK_API_KEY="your-api-key"

Usage

npm
npm install @langchain/jigsawstack
import { JigsawStackPromptEngine } from "@langchain/jigsawstack";

export const run = async () => {
  const model = new JigsawStackPromptEngine();
  const res = await model.invoke(
    "Tell me about the leaning tower of pisa?\nAnswer:"
  );
  console.log({ res });
};