Skip to content

complete

complete(client, prompt, options): Promise<string>

Defined in: core/quick-methods.ts:55

Quick completion - returns final text response.

LLMist

LLMist client instance

string

User prompt

TextGenerationOptions = {}

Optional configuration

Promise<string>

Complete text response

const client = new LLMist();
const answer = await complete(client, "What is 2+2?");
console.log(answer); // "4" or "2+2 equals 4"