UNPKG

open-ai-npc

Version:

Testing openAI's API, with a "dungeon master".

20 lines (19 loc) 834 B
import { ChatCompletionCreateParamsBase } from "openai/resources/chat/completions.mjs"; import { ChatCompletionMessageParam } from "openai/resources/index.mjs"; export declare function makeComment(situations: string[], model?: string, seed?: string, dictionary?: Record<string, string>, customFields?: Record<string, { type?: string; value: string | number | boolean; }>): Promise<{ situations?: string[] | undefined; model: string; response: string | null; }>; interface Props { model: ChatCompletionCreateParamsBase["model"]; params?: Partial<ChatCompletionCreateParamsBase>; messages?: ChatCompletionMessageParam[]; } export declare function comment({ model, params, messages }: Props): Promise<import("openai/resources/index.mjs").ChatCompletion & { _request_id?: string | null; }>; export {};