UNPKG

@promptbook/browser

Version:

Promptbook: Run AI apps in plain human language across multiple models and platforms

15 lines (14 loc) 553 B
/** * Removes quotes from a string * * Tip: This is very useful for post-processing of the result of the LLM model * Note: This function removes only the same quotes from the beginning and the end of the string * Note: There are two similar functions: * - `removeQuotes` which removes only bounding quotes * - `unwrapResult` which removes whole introduce sentence * * @param text optionally quoted text * @returns text without quotes * @public exported from `@promptbook/utils` */ export declare function removeQuotes(text: string): string;