JigsawStack 提示引擎
LangChain.js 支持调用 JigsawStack 提示引擎 LLM。
设置
凭据
export JIGSAWSTACK_API_KEY="your-api-key"
使用
提示
- npm
- Yarn
- pnpm
npm install @langchain/jigsawstack
yarn add @langchain/jigsawstack
pnpm add @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 });
};