@promptbook/azure-openai
Version:
Promptbook: Run AI apps in plain human language across multiple models and platforms
10 lines (9 loc) • 406 B
TypeScript
/**
* 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/utils`
*/
export declare function trimEndOfCodeBlock(value: string): string;