open-ai-npc
Version:
Testing openAI's API, with a "dungeon master".
13 lines (12 loc) • 476 B
TypeScript
import { ChatCompletionCreateParamsBase } from "openai/resources/chat/completions.mjs";
import { Express } from "express";
export declare function getMessage(systemText: string, prompt: string, params?: Partial<ChatCompletionCreateParamsBase>, version?: string): Promise<{
content: any;
cached: boolean;
model?: undefined;
} | {
content: string | null;
model: string;
cached?: undefined;
}>;
export declare function addCustomRoute(app: Express): void;