UNPKG

@gptp/core

Version:

Library to supercharge your use of large language models

14 lines (13 loc) 533 B
/** * Removes quotes and optional introduce text from a string * * Tip: This is very usefull for post-processing of the result of the LLM model * Note: This function trims the text and removes whole introduce sentence if it is present * Note: There are two simmilar functions: * - `removeQuotes` which removes only bounding quotes * - `unwrapResult` which removes whole introduce sentence * * @param text optionally quoted text * @returns text without quotes */ export declare function unwrapResult(text: string): string;