UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

10 lines (9 loc) 415 B
/** * Function trimEndOfCodeBlock will remove ending code block from the string if it is present. * * Note: This is useful for post-processing of the result of the completion LLM model * if you want to start code block in the prompt but you don't want to end it in the result. * * @public exported from `@promptbook/markdown-utils` */ export declare function trimEndOfCodeBlock(value: string): string;