UNPKG

aiwrapper

Version:

A Universal AI Wrapper for JavaScript & TypeScript

15 lines (14 loc) 433 B
import { OpenAIResponsesLang, OpenAILangOptions } from "./responses/openai-responses-lang.ts"; export type OpenAILangConfig = { apiKey: string; model: string; systemPrompt: string; maxTokens?: number; }; export type OpenAIChatMessage = { role: "developer" | "user" | "assistant"; content: string; }; export declare class OpenAILang extends OpenAIResponsesLang { constructor(options: OpenAILangOptions); }