VernLLMVernLLM

Getting Started

Install vern-llm and make your first call

Install

pnpm add vern-llm

Don't forget to install OpenAI too

pnpm add openai

Basic usage

import OpenAI from 'openai';
import { VernLLM } from 'vern-llm';

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

const llm = new VernLLM({
  client: openai,
  model: 'gpt-4o',
});

const parsed = await llm.call({
  systemPrompt: 'Return JSON: { "skills": string[] }', // JSON mode enabled by default
  userContent: 'Extract skills from: ...',
});

JSON mode

jsonMode: false returns the raw string without JSON parsing.

Per-call overrides

const llm = new VernLLM({ client: openai, model: 'gpt-4o-mini' });

await llm.call({
  systemPrompt: '...',
  userContent: '...',
  model: 'o3',
  reasoningEffort: 'high', // passed through as `reasoning_effort` for supported models
});

On this page