UNPKG

@promptbook/gemini

Version:

It's time for a paradigm shift. The future of software in plain English, French or Latin

10 lines (9 loc) 374 B
/** * Function trimCodeBlock will trim starting and ending code block from the string if it is present. * * Note: This is usefull for post-processing of the result of the chat LLM model * when the model wraps the result in the (markdown) code block. * * @public exported from `@promptbook/utils` */ export declare function trimCodeBlock(value: string): string;